Documentation ¶
Overview ¶
Package handler provides handler.
Index ¶
- Variables
- func CreateHarborUser(userID string) error
- func MkUserDir(userID string) error
- func RepoToURL(config apigen.ImageConfig, userID string) (string, error)
- func URLToRepo(url string, userID string, tag string) (*apigen.ImageConfig, error)
- type CompetitionInfo
- type Handler
- func (handler *Handler) CreateApplication(ctx echo.Context, name string) error
- func (handler *Handler) CreateDirectory(ctx echo.Context, params apigen.CreateDirectoryParams) error
- func (handler *Handler) CreateEnvironment(ctx echo.Context, name apigen.EnvironmentName) error
- func (handler *Handler) DeleteApplication(ctx echo.Context, name string) error
- func (handler *Handler) DeleteDirectoryOrFile(ctx echo.Context, params apigen.DeleteDirectoryOrFileParams) error
- func (handler *Handler) DeleteEnvironment(ctx echo.Context, name apigen.EnvironmentName) error
- func (handler *Handler) DeleteImages(ctx echo.Context, params apigen.DeleteImagesParams) error
- func (handler *Handler) DeleteImagesImporting(ctx echo.Context, params apigen.DeleteImagesImportingParams) error
- func (handler *Handler) DeleteReleases(ctx echo.Context, params internalapigen.DeleteReleasesParams) error
- func (handler *Handler) GetApplicationList(ctx echo.Context, params apigen.GetApplicationListParams) error
- func (handler *Handler) GetApplicationMetadata(ctx echo.Context, name string) error
- func (handler *Handler) GetApplicationNotes(ctx echo.Context, name string) error
- func (handler *Handler) GetApplicationPods(ctx echo.Context, name string) error
- func (handler *Handler) GetApplicationServices(ctx echo.Context, name string) error
- func (handler *Handler) GetAppstoreChart(ctx echo.Context, category apigen.ChartCategory, name string, version string) error
- func (handler *Handler) GetAppstoreChartList(ctx echo.Context) error
- func (handler *Handler) GetCompetition(ctx echo.Context, params apigen.GetCompetitionParams) error
- func (handler *Handler) GetCompetitionCompetitionID(ctx echo.Context, competitionID string) error
- func (handler *Handler) GetCompetitionCompetitionIDInvitation(ctx echo.Context, competitionID string) error
- func (handler *Handler) GetComputingUnitSpecs(ctx echo.Context) error
- func (handler *Handler) GetContainerLog(ctx echo.Context, podName apigen.PodName, params apigen.GetContainerLogParams) error
- func (handler *Handler) GetDirectory(ctx echo.Context, params apigen.GetDirectoryParams) error
- func (handler *Handler) GetEnvironment(ctx echo.Context, name apigen.EnvironmentName) error
- func (handler *Handler) GetEnvironmentList(ctx echo.Context, params apigen.GetEnvironmentListParams) error
- func (handler *Handler) GetImages(ctx echo.Context, params apigen.GetImagesParams) error
- func (handler *Handler) GetImagesInfo(ctx echo.Context) error
- func (handler *Handler) GetImagesRegistry(ctx echo.Context) error
- func (handler *Handler) GetPublicImages(ctx echo.Context, params apigen.GetPublicImagesParams) error
- func (handler *Handler) GetPublicImagesInfo(ctx echo.Context, params apigen.GetPublicImagesInfoParams) error
- func (handler *Handler) GetStorageDownload(ctx echo.Context, params apigen.GetStorageDownloadParams) error
- func (handler *Handler) GetUser(c echo.Context) error
- func (handler *Handler) GetUserTasks(c echo.Context) error
- func (handler *Handler) ListImportingImages(ctx echo.Context) error
- func (handler *Handler) PineappleVersion(c echo.Context) error
- func (handler *Handler) PostCompetitionCompetitionID(ctx echo.Context, competitionID string, ...) error
- func (handler *Handler) PostImagesImporting(ctx echo.Context, params apigen.PostImagesImportingParams) error
- func (handler *Handler) PostStorageUpload(ctx echo.Context, params apigen.PostStorageUploadParams) error
- func (handler *Handler) PostUserInit(ctx echo.Context) error
- func (handler *Handler) PutImages(ctx echo.Context, params apigen.PutImagesParams) error
- func (handler *Handler) PutImagesImporting(ctx echo.Context, params apigen.PutImagesImportingParams) error
- func (handler *Handler) UploadChart(ctx echo.Context, category apigen.ChartCategory) error
- func (handler *Handler) UserInfo(c echo.Context) error
- type NamedFile
- type RequestBodyError
- type UserProfile
Constants ¶
This section is empty.
Variables ¶
View Source
var SourcePrivate = "private"
View Source
var SourcePublic = "public"
Functions ¶
func CreateHarborUser ¶
Types ¶
type CompetitionInfo ¶
type CompetitionInfo struct { Name string `bson:"name,omitempty"` ID string `bson:"id,omitempty"` Beginning *time.Time `bson:"beginning,omitempty"` Deadline *time.Time `bson:"deadline,omitempty"` ComputeunitGroup string `bson:"computeunitGroup,omitempty"` BaseParticipants int64 `bson:"baseParticipants,omitempty"` }
type Handler ¶
type Handler struct { }
func (*Handler) CreateApplication ¶
func (*Handler) CreateDirectory ¶
func (handler *Handler) CreateDirectory(ctx echo.Context, params apigen.CreateDirectoryParams) error
func (*Handler) CreateEnvironment ¶
func (handler *Handler) CreateEnvironment(ctx echo.Context, name apigen.EnvironmentName) error
func (*Handler) DeleteApplication ¶
func (*Handler) DeleteDirectoryOrFile ¶
func (handler *Handler) DeleteDirectoryOrFile(ctx echo.Context, params apigen.DeleteDirectoryOrFileParams) error
func (*Handler) DeleteEnvironment ¶
func (handler *Handler) DeleteEnvironment(ctx echo.Context, name apigen.EnvironmentName) error
func (*Handler) DeleteImages ¶
func (handler *Handler) DeleteImages(ctx echo.Context, params apigen.DeleteImagesParams) error
func (*Handler) DeleteImagesImporting ¶
func (handler *Handler) DeleteImagesImporting(ctx echo.Context, params apigen.DeleteImagesImportingParams) error
func (*Handler) DeleteReleases ¶
func (handler *Handler) DeleteReleases(ctx echo.Context, params internalapigen.DeleteReleasesParams) error
func (*Handler) GetApplicationList ¶
func (handler *Handler) GetApplicationList(ctx echo.Context, params apigen.GetApplicationListParams) error
func (*Handler) GetApplicationMetadata ¶
func (*Handler) GetApplicationNotes ¶
func (*Handler) GetApplicationPods ¶
func (*Handler) GetApplicationServices ¶
func (*Handler) GetAppstoreChart ¶
func (*Handler) GetAppstoreChartList ¶
func (*Handler) GetCompetition ¶
func (handler *Handler) GetCompetition(ctx echo.Context, params apigen.GetCompetitionParams) error
func (*Handler) GetCompetitionCompetitionID ¶
func (*Handler) GetCompetitionCompetitionIDInvitation ¶
func (*Handler) GetComputingUnitSpecs ¶
func (*Handler) GetContainerLog ¶
func (*Handler) GetDirectory ¶
func (handler *Handler) GetDirectory(ctx echo.Context, params apigen.GetDirectoryParams) error
func (*Handler) GetEnvironment ¶
func (handler *Handler) GetEnvironment(ctx echo.Context, name apigen.EnvironmentName) error
func (*Handler) GetEnvironmentList ¶
func (handler *Handler) GetEnvironmentList(ctx echo.Context, params apigen.GetEnvironmentListParams) error
func (*Handler) GetImages ¶
func (handler *Handler) GetImages(ctx echo.Context, params apigen.GetImagesParams) error
func (*Handler) GetImagesInfo ¶
func (*Handler) GetImagesRegistry ¶
func (*Handler) GetPublicImages ¶
func (handler *Handler) GetPublicImages(ctx echo.Context, params apigen.GetPublicImagesParams) error
func (*Handler) GetPublicImagesInfo ¶
func (handler *Handler) GetPublicImagesInfo(ctx echo.Context, params apigen.GetPublicImagesInfoParams) error
func (*Handler) GetStorageDownload ¶
func (handler *Handler) GetStorageDownload(ctx echo.Context, params apigen.GetStorageDownloadParams) error
func (*Handler) GetUserTasks ¶
func (*Handler) ListImportingImages ¶
func (*Handler) PineappleVersion ¶
func (*Handler) PostCompetitionCompetitionID ¶
func (handler *Handler) PostCompetitionCompetitionID(ctx echo.Context, competitionID string, params apigen.PostCompetitionCompetitionIDParams) error
func (*Handler) PostImagesImporting ¶
func (handler *Handler) PostImagesImporting(ctx echo.Context, params apigen.PostImagesImportingParams) error
func (*Handler) PostStorageUpload ¶
func (handler *Handler) PostStorageUpload(ctx echo.Context, params apigen.PostStorageUploadParams) error
func (*Handler) PostUserInit ¶
func (*Handler) PutImages ¶
func (handler *Handler) PutImages(ctx echo.Context, params apigen.PutImagesParams) error
func (*Handler) PutImagesImporting ¶
func (handler *Handler) PutImagesImporting(ctx echo.Context, params apigen.PutImagesImportingParams) error
func (*Handler) UploadChart ¶
func (handler *Handler) UploadChart(ctx echo.Context, category apigen.ChartCategory) error
type NamedFile ¶
type NamedFile struct { io.ReadCloser // contains filtered or unexported fields }
type RequestBodyError ¶
type RequestBodyError struct {
// contains filtered or unexported fields
}
func (*RequestBodyError) Error ¶
func (r *RequestBodyError) Error() string
func (*RequestBodyError) GetKeyErrors ¶
func (r *RequestBodyError) GetKeyErrors() map[string]string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.