Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { ListRegions(ctx context.Context) ([]*Region, error) Create(ctx context.Context, request *CreateRegionRequest) (uint, error) UpdateByID(ctx context.Context, id uint, request *UpdateRegionRequest) error DeleteByID(ctx context.Context, id uint) error GetByID(ctx context.Context, id uint) (*Region, error) }
func NewController ¶
func NewController(param *param.Param) Controller
type CreateRegionRequest ¶
type Region ¶
type Region struct { ID uint `json:"id"` Name string `json:"name"` DisplayName string `json:"displayName"` Server string `json:"server"` Certificate string `json:"certificate"` IngressDomain string `json:"ingressDomain"` PrometheusURL string `json:"prometheusURL"` Disabled bool `json:"disabled"` RegistryID uint `json:"registryID"` Registry registry.Registry `json:"registry"` Tags []tag.Tag `json:"tags"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
type UpdateRegionRequest ¶
type UpdateRegionRequest struct { Name string `json:"name"` DisplayName string `json:"displayName"` Server string `json:"server"` Certificate string `json:"certificate"` IngressDomain string `json:"ingressDomain"` PrometheusURL string `json:"prometheusURL"` RegistryID uint `json:"registryID"` Disabled bool `json:"disabled"` }
Click to show internal directories.
Click to hide internal directories.