Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AliasRequest ¶
type AliasRequest struct { Kind string `json:"type" validate:"required,isAliasKind" example:"string"` Value interface{} `json:"value" validate:"required" example:"my-alias" swaggertype:"string"` }
AliasRequest creates or modifies an alias value.
type AliasResponse ¶
type AliasResponse struct { Key string `json:"key" example:"my-alias"` Kind string `json:"type" example:"string"` Value interface{} `json:"value" example:"my-alias-value" swaggertype:"string"` Registry string `json:"registry" example:"my-registry"` CreatedAt time.Time `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"` UpdatedAt time.Time `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"` }
AliasResponse returns the alias value.
func NewAliasResponse ¶
func NewAliasResponse(alias *entities.Alias) *AliasResponse
type CreateRegistryRequest ¶
type CreateRegistryRequest struct {
AllowedTenants []string `json:"allowedTenants,omitempty" example:"tenant1,tenant2"`
}
type RegistryResponse ¶
type RegistryResponse struct { Name string `json:"name" example:"my-alias-registry"` Aliases []AliasResponse `json:"aliases"` AllowedTenants []string `json:"allowedTenants" example:"tenant1,tenant2"` CreatedAt time.Time `json:"createdAt" example:"2020-07-09T12:35:42.115395Z"` UpdatedAt time.Time `json:"updatedAt" example:"2020-07-09T12:35:42.115395Z"` }
func NewRegistryResponse ¶
func NewRegistryResponse(registry *entities.AliasRegistry) *RegistryResponse
Click to show internal directories.
Click to hide internal directories.