Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAuthorized ¶
CheckAuthorized checks if a user is authorized to update a namespace.
Types ¶
type ContainerBuilder ¶
ContainerBuilder is an interface for Docker container builders.
type ContainerRegistry ¶
type ContainerRegistry interface { GetDockerImagePath(ImageName) string ListImageTags(string) error }
ContainerRegistry is an interface for Docker container registries.
type DB ¶
type DB interface { IsUserAdminOfNamespace(uid string, namespace string) (bool, error) UpdateAPIMetadata(imageID string, metadata *map[string]interface{}) error GetVersionnedAPI(ImageName) (*Version, error) UpdateVersionnedAPI(imageID string, version string, template *Version) error }
DB is an interface for manipulating DB resources.
type Env ¶
type Env struct { DB DB ContainerRegistry ContainerRegistry ContainerBuilder ContainerBuilder Auth Auth }
Env stores our application-wide configuration.
type Error ¶
Error represents a handler error. It provides methods for a HTTP status code and embeds the built-in error interface.
type ImageName ¶
ImageName represent a docker container template name.
type StatusError ¶
StatusError represents an error with an associated HTTP status code.
func (StatusError) Error ¶
func (se StatusError) Error() string
Allows StatusError to satisfy the error interface.
Click to show internal directories.
Click to hide internal directories.