Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { // Create a registry Create(ctx context.Context, request *CreateRegistryRequest) (uint, error) // ListAll list all registries ListAll(ctx context.Context) (Registries, error) // UpdateByID update a registry UpdateByID(ctx context.Context, id uint, request *UpdateRegistryRequest) error // DeleteByID delete a registry by id DeleteByID(ctx context.Context, id uint) error GetByID(ctx context.Context, id uint) (*Registry, error) GetKinds(ctx context.Context) []string }
func NewController ¶
func NewController(param *param.Param) Controller
type CreateRegistryRequest ¶
type Registries ¶
type Registries []*Registry
type Registry ¶
type Registry struct { ID uint `json:"id"` Name string `json:"name"` Server string `json:"server"` Token string `json:"token"` InsecureSkipTLSVerify bool `json:"insecureSkipTLSVerify"` Kind string `json:"kind"` Path string `json:"path"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
Click to show internal directories.
Click to hide internal directories.