Documentation ¶
Index ¶
- Constants
- type AdminPreparedProgress
- type ProgressServer
- func (s ProgressServer) CountByScheduledEvent(w http.ResponseWriter, r *http.Request)
- func (s ProgressServer) ListByLabel(w http.ResponseWriter, r *http.Request, label string, value string, ...)
- func (s ProgressServer) ListByScheduledEventFunc(w http.ResponseWriter, r *http.Request)
- func (s ProgressServer) ListByUserFunc(w http.ResponseWriter, r *http.Request)
- func (s ProgressServer) ListForUserFunc(w http.ResponseWriter, r *http.Request)
- func (s ProgressServer) SetupRoutes(r *mux.Router)
- func (s ProgressServer) Update(w http.ResponseWriter, r *http.Request)
- type ScheduledEventProgressCount
Constants ¶
View Source
const ( ScheduledEventLabel = "hobbyfarm.io/scheduledevent" SessionLabel = "hobbyfarm.io/session" UserLabel = "hobbyfarm.io/user" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdminPreparedProgress ¶
type AdminPreparedProgress struct { Session string `json:"session"` hfv1.ProgressSpec }
type ProgressServer ¶
type ProgressServer struct {
// contains filtered or unexported fields
}
func NewProgressServer ¶
func NewProgressServer(authClient *authclient.AuthClient, hfClientset hfClientset.Interface, ctx context.Context) (*ProgressServer, error)
func (ProgressServer) CountByScheduledEvent ¶
func (s ProgressServer) CountByScheduledEvent(w http.ResponseWriter, r *http.Request)
func (ProgressServer) ListByLabel ¶
func (s ProgressServer) ListByLabel(w http.ResponseWriter, r *http.Request, label string, value string, includeFinished bool)
func (ProgressServer) ListByScheduledEventFunc ¶
func (s ProgressServer) ListByScheduledEventFunc(w http.ResponseWriter, r *http.Request)
List Progress by Scheduled Event
Vars: - id : The scheduled event id
func (ProgressServer) ListByUserFunc ¶
func (s ProgressServer) ListByUserFunc(w http.ResponseWriter, r *http.Request)
List Progress by User
Vars: - id : The user id
func (ProgressServer) ListForUserFunc ¶
func (s ProgressServer) ListForUserFunc(w http.ResponseWriter, r *http.Request)
List Progress for the authenticated user
func (ProgressServer) SetupRoutes ¶
func (s ProgressServer) SetupRoutes(r *mux.Router)
func (ProgressServer) Update ¶
func (s ProgressServer) Update(w http.ResponseWriter, r *http.Request)
Update Progress
Vars: - id : Session linked to the progress resource
Click to show internal directories.
Click to hide internal directories.