Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var WireSet = wire.NewSet( ProvideController, )
WireSet provides a wire set for this package.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController( authorizer authz.Authorizer, spaceStore store.SpaceStore, infraproviderSvc *infraprovider.Service, ) *Controller
func ProvideController ¶
func ProvideController( authorizer authz.Authorizer, spaceStore store.SpaceStore, infraproviderSvc *infraprovider.Service, ) *Controller
func (*Controller) Create ¶
func (c *Controller) Create( ctx context.Context, session *auth.Session, in *CreateInput, ) (*types.InfraProviderConfig, error)
Create creates a new infraprovider config.
type CreateInput ¶
type CreateInput struct { Identifier string `json:"identifier"` SpaceRef string `json:"space_ref"` // Ref of the parent space Name string `json:"name"` Type infraproviderenum.InfraProviderType `json:"type"` Metadata map[string]string `json:"metadata"` Resources []ResourceInput `json:"resources"` }
type ResourceInput ¶
type ResourceInput struct { Identifier string `json:"identifier"` Name string `json:"name"` InfraProviderType infraproviderenum.InfraProviderType `json:"infra_provider_type"` CPU *string `json:"cpu"` Memory *string `json:"memory"` Disk *string `json:"disk"` Network *string `json:"network"` Region []string `json:"region"` Metadata map[string]string `json:"metadata"` GatewayHost *string `json:"gateway_host"` GatewayPort *string `json:"gateway_port"` TemplateIdentifier *string `json:"template_identifier"` }
Click to show internal directories.
Click to hide internal directories.