environmentregion

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: 6 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 {
	ListAll(ctx context.Context) (EnvironmentRegions, error)
	ListByEnvironment(ctx context.Context, environment string) (EnvironmentRegions, error)
	CreateEnvironmentRegion(ctx context.Context, request *CreateEnvironmentRegionRequest) (uint, error)
	SetEnvironmentRegionToDefault(ctx context.Context, id uint) error
	DeleteByID(ctx context.Context, id uint) error
}

func NewController

func NewController(param *param.Param) Controller

type CreateEnvironmentRegionRequest

type CreateEnvironmentRegionRequest struct {
	EnvironmentName string `json:"environmentName"`
	RegionName      string `json:"regionName"`
}

type EnvironmentRegion

type EnvironmentRegion struct {
	ID                uint   `json:"id"`
	EnvironmentName   string `json:"environmentName"`
	RegionName        string `json:"regionName"`
	RegionDisplayName string `json:"regionDisplayName"`
	IsDefault         bool   `json:"isDefault"`
	Disabled          bool   `json:"disabled"`
}

type EnvironmentRegions

type EnvironmentRegions []*EnvironmentRegion

Jump to

Keyboard shortcuts

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