Documentation
¶
Index ¶
- type AuthDetails
- type EnvironmentDetails
- type Parameter
- type PortalDetails
- type RequestWorkshopRequest
- type RequestWorkshopResponse
- type SessionDetails
- type WorkshopDetails
- type WorkshopSessionDetails
- type WorkshopsCatalogRequester
- func (c *WorkshopsCatalogRequester) ExtendWorkshopSession(sessionName string) (*WorkshopSessionDetails, error)
- func (c *WorkshopsCatalogRequester) GetWorkshopSession(sessionName string) (*WorkshopSessionDetails, error)
- func (c *WorkshopsCatalogRequester) GetWorkshopsCatalog() (*WorkshopsCatalogResponse, error)
- func (c *WorkshopsCatalogRequester) Login() (func(), error)
- func (c *WorkshopsCatalogRequester) RequestWorkshop(workshopName string, environmentName string, params map[string]string, ...) (*RequestWorkshopResponse, error)
- func (c *WorkshopsCatalogRequester) TerminateWorkshopSession(sessionName string) (*WorkshopSessionDetails, error)
- type WorkshopsCatalogRequesterApi
- type WorkshopsCatalogResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthDetails ¶
type EnvironmentDetails ¶
type EnvironmentDetails struct {
Name string `json:"name"`
State string `json:"state"`
Duration int64 `json:"duration"`
Capacity int64 `json:"capacity"`
Reserved int64 `json:"reserved"`
Allocated int64 `json:"allocated"`
Available int64 `json:"available"`
Workshop WorkshopDetails `json:"workshop"`
}
type PortalDetails ¶
type PortalDetails struct {
Name string `json:"name"`
// Labels []string `json:"labels"`
UID string `json:"uid"`
Generation int64 `json:"generation"`
URL string `json:"url"`
Sessions SessionDetails `json:"sessions"`
}
type RequestWorkshopRequest ¶
type RequestWorkshopRequest struct {
Parameters []Parameter `json:"parameters"`
}
RequestWorkshop --------------------------------------------
type RequestWorkshopResponse ¶
type SessionDetails ¶
type WorkshopDetails ¶
type WorkshopDetails struct {
Name string `json:"name"`
Title string `json:"title"`
Description string `json:"description"`
Vendor string `json:"vendor"`
Authors []string `json:"authors"`
Difficulty string `json:"difficulty"`
Duration string `json:"duration"`
Tags []string `json:"tags"`
// Labels []string `json:"labels"`
Logo string `json:"logo"`
URL string `json:"url"`
}
type WorkshopSessionDetails ¶
type WorkshopsCatalogRequester ¶
type WorkshopsCatalogRequester struct {
PortalUrl string
Auth *AuthDetails
// contains filtered or unexported fields
}
func NewWorkshopsCatalogRequester ¶
func NewWorkshopsCatalogRequester(clusterConfig *cluster.ClusterConfig, portalName string) *WorkshopsCatalogRequester
func (*WorkshopsCatalogRequester) ExtendWorkshopSession ¶
func (c *WorkshopsCatalogRequester) ExtendWorkshopSession(sessionName string) (*WorkshopSessionDetails, error)
func (*WorkshopsCatalogRequester) GetWorkshopSession ¶
func (c *WorkshopsCatalogRequester) GetWorkshopSession(sessionName string) (*WorkshopSessionDetails, error)
func (*WorkshopsCatalogRequester) GetWorkshopsCatalog ¶
func (c *WorkshopsCatalogRequester) GetWorkshopsCatalog() (*WorkshopsCatalogResponse, error)
func (*WorkshopsCatalogRequester) Login ¶
func (c *WorkshopsCatalogRequester) Login() (func(), error)
func (*WorkshopsCatalogRequester) RequestWorkshop ¶
func (c *WorkshopsCatalogRequester) RequestWorkshop(workshopName string, environmentName string, params map[string]string, indexUrl string, user string, timeout int) (*RequestWorkshopResponse, error)
func (*WorkshopsCatalogRequester) TerminateWorkshopSession ¶
func (c *WorkshopsCatalogRequester) TerminateWorkshopSession(sessionName string) (*WorkshopSessionDetails, error)
type WorkshopsCatalogRequesterApi ¶
type WorkshopsCatalogRequesterApi interface {
GetWorkshopsCatalog() (*WorkshopsCatalogResponse, error)
Login() (func(), error)
}
type WorkshopsCatalogResponse ¶
type WorkshopsCatalogResponse struct {
Portal PortalDetails `json:"portal"`
Environments []EnvironmentDetails `json:"environments"`
}
Click to show internal directories.
Click to hide internal directories.