// LastPage returns the last page of services.
422669
func (s *IPServiceList) LastPage() (*IPServiceList, error) {
	return s.getPage(s.Meta.LastPageUri)
}
211711
func (tx *Tx) page(id pgid) *page {
	// Check the dirty pages first.
	if tx.pages != nil {
		if p, ok := tx.pages[id]; ok {
			return p
		}
	}

	// Otherwise return directly from the mmap.
	return tx.db.page(id)
}
1177153
func NewPage(p *HistoryProvider) *Pages {
	pg := &Pages{
		StateEngine:     NewStateEngine(),
		HistoryProvider: p,
	}

	p.NotifyPage(pg)
	pg.All(".")
	return pg
}
1327272
func (l Links) NextPage() (int, error) {
	if l.Next == "" {
		return 0, nil
	}
	return pageForURL(l.Next)
}
1264540
func (l *BasicLayout) MovePage(state *Peco, p PagingRequest) (moved bool) {
	switch p.Type() {
	case ToScrollLeft, ToScrollRight:
		moved = horizontalScroll(state, l, p)
	default:
		moved = verticalScroll(state, l, p)
	}
	return
}
772019
func (service *Service) HomePage(w http.ResponseWriter, request *http.Request) {

	loggedinuser, err := service.GetLoggedInUser(request, w)
	if err != nil {
		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
		return
	}
	if loggedinuser == "" {
		service.ShowPublicSite(w, request)
		return
	}

	htmlData, err := html.Asset(homepageFileName)
	if err != nil {
		http.Error(w, http.StatusText(http.StatusInternalServerError), http.StatusInternalServerError)
		return
	}
	sessions.Save(request, w)
	w.Write(htmlData)
}
648456
func (p *Pagination) FirstPage() bool {
	return p == nil || p.ForceFirstPage || (len(p.Next) == 0 && len(p.Previous) == 0)
}
150083
func (self *SimplePageMapper) LogoutLandingPage(conn OauthConnector) string {
	v := url.Values{
		"service": []string{conn.Name()},
	}
	return fmt.Sprintf("%s?%s", self.logoutOk, v.Encode())
}
973188
func (al *Apps) Last() *App {
	if len(al.apps) == 0 {
		return nil
	}
	return &al.apps[len(al.apps)-1]
}
1199326
func (f Form) LastBoundary(b []byte) int {
	return lastBoundary(formTable[f], b)
}
755452
func (c *IPMemberList) NextPage() (*IPMemberList, error) {
	if !c.HasNextPage() {
		return nil, Error{"No next page"}
	}

	return c.getPage(c.Meta.NextPageUri)
}
908406
func (b *Broker) LastOperation(u user.Info, instanceID string, operation api.Operation) *api.Response {
	klog.V(4).Infof("Template service broker: LastOperation: instanceID %s", instanceID)

	switch operation {
	case api.OperationProvisioning:
		return b.lastOperationProvisioning(u, instanceID)
	case api.OperationDeprovisioning:
		return b.lastOperationDeprovisioning(u, instanceID)
	}

	return api.BadRequest(errors.New("invalid operation"))
}
109122
func (ms *MemoryMsgStore) LastMsg() (*pb.MsgProto, error) {
	ms.RLock()
	m := ms.msgs[ms.last]
	ms.RUnlock()
	return m, nil
}
868123
func (s *IPRoleList) PreviousPage() (*IPRoleList, error) {
	if !s.HasPreviousPage() {
		return nil, Error{"No previous page"}
	}

	return s.getPage(s.Meta.NextPageUri)
}
215754
func (l Links) PreviousPage() (int, error) {
	if l.Previous == "" {
		return 0, nil
	}
	return pageForURL(l.Previous)
}
1294553
func (s *IPCredentialList) FirstPage() (*IPCredentialList, error) {
	return s.getPage(s.Meta.FirstPageUri)
}
839020
func (client *Client) CreateRunstatusPage(ctx context.Context, page RunstatusPage) (*RunstatusPage, error) {
	resp, err := client.runstatusRequest(ctx, client.Endpoint+runstatusPagesURL, page, "POST")
	if err != nil {
		return nil, err
	}

	var p *RunstatusPage
	if err := json.Unmarshal(resp, &p); err != nil {
		return nil, err
	}

	return p, nil
}