region

package
v0.0.0-...-d125d34 Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

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 CreateRegionRequest 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"`
}

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"`
}

Jump to

Keyboard shortcuts

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