handler

package
v0.0.0-...-c9dffe9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package handler provides handler.

Index

Constants

This section is empty.

Variables

View Source
var SourcePrivate = "private"
View Source
var SourcePublic = "public"

Functions

func CreateHarborUser

func CreateHarborUser(userID string) error

func MkUserDir

func MkUserDir(userID string) error

MkUserDir create user directory when init user

func RepoToURL

func RepoToURL(config apigen.ImageConfig, userID string) (string, error)

func URLToRepo

func URLToRepo(url string, userID string, tag string) (*apigen.ImageConfig, error)

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 *Handler) CreateApplication(ctx echo.Context, name string) error

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 *Handler) DeleteApplication(ctx echo.Context, name string) error

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 *Handler) GetApplicationMetadata(ctx echo.Context, name string) error

func (*Handler) GetApplicationNotes

func (handler *Handler) GetApplicationNotes(ctx echo.Context, name string) error

func (*Handler) GetApplicationPods

func (handler *Handler) GetApplicationPods(ctx echo.Context, name string) error

func (*Handler) GetApplicationServices

func (handler *Handler) GetApplicationServices(ctx echo.Context, name string) error

func (*Handler) GetAppstoreChart

func (handler *Handler) GetAppstoreChart(ctx echo.Context, category apigen.ChartCategory, name string, version string) error

func (*Handler) GetAppstoreChartList

func (handler *Handler) GetAppstoreChartList(ctx echo.Context) error

func (*Handler) GetCompetition

func (handler *Handler) GetCompetition(ctx echo.Context, params apigen.GetCompetitionParams) error

func (*Handler) GetCompetitionCompetitionID

func (handler *Handler) GetCompetitionCompetitionID(ctx echo.Context, competitionID string) error

func (*Handler) GetCompetitionCompetitionIDInvitation

func (handler *Handler) GetCompetitionCompetitionIDInvitation(ctx echo.Context, competitionID string) error

func (*Handler) GetComputingUnitSpecs

func (handler *Handler) GetComputingUnitSpecs(ctx echo.Context) error

func (*Handler) GetContainerLog

func (handler *Handler) GetContainerLog(ctx echo.Context, podName apigen.PodName, params apigen.GetContainerLogParams) error

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 *Handler) GetImagesInfo(ctx echo.Context) error

func (*Handler) GetImagesRegistry

func (handler *Handler) GetImagesRegistry(ctx echo.Context) error

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) GetUser

func (handler *Handler) GetUser(c echo.Context) error

func (*Handler) GetUserTasks

func (handler *Handler) GetUserTasks(c echo.Context) error

func (*Handler) ListImportingImages

func (handler *Handler) ListImportingImages(ctx echo.Context) error

func (*Handler) PineappleVersion

func (handler *Handler) PineappleVersion(c echo.Context) error

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 *Handler) PostUserInit(ctx echo.Context) error

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

func (*Handler) UserInfo

func (handler *Handler) UserInfo(c echo.Context) error

type NamedFile

type NamedFile struct {
	io.ReadCloser
	// contains filtered or unexported fields
}

func (*NamedFile) Name

func (nF *NamedFile) Name() string

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

type UserProfile

type UserProfile struct {
	UserID  string                 `bson:"userID,omitempty"`
	RegTime time.Time              `bson:"regTime,omitempty"`
	Profile map[string]interface{} `bson:"profile,omitempty"`
	Inviter string                 `bson:"inviter,omitempty"`
}

Directories

Path Synopsis
Package models provides models.
Package models provides models.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL