Documentation ¶
Index ¶
- Variables
- func MarshalPowerState(v pgrpc.PowerState) graphql.Marshaler
- func MarshalStrMap(val map[string]string) graphql.Marshaler
- func MarshalUUID(val uuid.UUID) graphql.Marshaler
- func MarshalVarTypeMap(val map[string]models.BlueprintVariableType) graphql.Marshaler
- func UnmarshalPowerState(v interface{}) (pgrpc.PowerState, error)
- func UnmarshalStrMap(v interface{}) (map[string]string, error)
- func UnmarshalUUID(v interface{}) (uuid.UUID, error)
- func UnmarshalVarTypeMap(v interface{}) (map[string]models.BlueprintVariableType, error)
- type BlueprintInput
- type BlueprintPage
- type DeploymentInput
- type DeploymentNodeState
- type DeploymentPage
- type DeploymentState
- type GrantedPermissionPage
- type GroupInput
- type GroupMembershipInput
- type GroupPage
- type MembershipInput
- type ProjectInput
- type ProjectPage
- type ProviderInput
- type ProviderPage
- type ResourceType
- type StrMap
- type UUID
- type UserInput
- type UserPage
- type VarTypeMap
Constants ¶
This section is empty.
Variables ¶
View Source
var AllDeploymentNodeState = []DeploymentNodeState{ DeploymentNodeStateToDeploy, DeploymentNodeStateToDestroy, DeploymentNodeStateToRebuild, DeploymentNodeStateParentAwaiting, DeploymentNodeStateChildAwaiting, DeploymentNodeStateInProgress, DeploymentNodeStateComplete, DeploymentNodeStateTainted, DeploymentNodeStateFailed, DeploymentNodeStateDestroyed, }
View Source
var AllDeploymentState = []DeploymentState{ DeploymentStateAwaiting, DeploymentStateInProgress, DeploymentStateComplete, DeploymentStateFailed, DeploymentStateDestroyed, DeploymentStateSuspended, }
View Source
var AllResourceType = []ResourceType{ ResourceTypeResource, ResourceTypeData, }
Functions ¶
func MarshalPowerState ¶
func MarshalPowerState(v pgrpc.PowerState) graphql.Marshaler
func MarshalVarTypeMap ¶
func MarshalVarTypeMap(val map[string]models.BlueprintVariableType) graphql.Marshaler
func UnmarshalPowerState ¶
func UnmarshalPowerState(v interface{}) (pgrpc.PowerState, error)
func UnmarshalStrMap ¶
func UnmarshalUUID ¶
func UnmarshalVarTypeMap ¶
func UnmarshalVarTypeMap(v interface{}) (map[string]models.BlueprintVariableType, error)
Types ¶
type BlueprintInput ¶
type BlueprintInput struct { Name string `json:"name"` Description string `json:"description"` BlueprintTemplate string `json:"blueprintTemplate"` VariableTypes map[string]models.BlueprintVariableType `json:"variableTypes"` ProviderID uuid.UUID `json:"providerId"` ProjectID uuid.UUID `json:"projectId"` }
type BlueprintPage ¶
type DeploymentInput ¶
type DeploymentInput struct {
Name string `json:"name"`
}
type DeploymentNodeState ¶
type DeploymentNodeState string
const ( DeploymentNodeStateToDeploy DeploymentNodeState = "to_deploy" DeploymentNodeStateToDestroy DeploymentNodeState = "to_destroy" DeploymentNodeStateToRebuild DeploymentNodeState = "to_rebuild" DeploymentNodeStateParentAwaiting DeploymentNodeState = "parent_awaiting" DeploymentNodeStateChildAwaiting DeploymentNodeState = "child_awaiting" DeploymentNodeStateInProgress DeploymentNodeState = "in_progress" DeploymentNodeStateComplete DeploymentNodeState = "complete" DeploymentNodeStateTainted DeploymentNodeState = "tainted" DeploymentNodeStateFailed DeploymentNodeState = "failed" DeploymentNodeStateDestroyed DeploymentNodeState = "destroyed" )
func (DeploymentNodeState) IsValid ¶
func (e DeploymentNodeState) IsValid() bool
func (DeploymentNodeState) MarshalGQL ¶
func (e DeploymentNodeState) MarshalGQL(w io.Writer)
func (DeploymentNodeState) String ¶
func (e DeploymentNodeState) String() string
func (*DeploymentNodeState) UnmarshalGQL ¶
func (e *DeploymentNodeState) UnmarshalGQL(v interface{}) error
type DeploymentPage ¶
type DeploymentPage struct { Deployments []*ent.Deployment `json:"deployments"` Total int `json:"total"` }
type DeploymentState ¶
type DeploymentState string
const ( DeploymentStateAwaiting DeploymentState = "awaiting" DeploymentStateInProgress DeploymentState = "in_progress" DeploymentStateComplete DeploymentState = "complete" DeploymentStateFailed DeploymentState = "failed" DeploymentStateDestroyed DeploymentState = "destroyed" DeploymentStateSuspended DeploymentState = "suspended" )
func (DeploymentState) IsValid ¶
func (e DeploymentState) IsValid() bool
func (DeploymentState) MarshalGQL ¶
func (e DeploymentState) MarshalGQL(w io.Writer)
func (DeploymentState) String ¶
func (e DeploymentState) String() string
func (*DeploymentState) UnmarshalGQL ¶
func (e *DeploymentState) UnmarshalGQL(v interface{}) error
type GrantedPermissionPage ¶
type GrantedPermissionPage struct { Permissions []*ent.GrantedPermission `json:"permissions"` Total int `json:"total"` }
type GroupInput ¶
type GroupInput struct {
Name string `json:"name"`
}
type GroupMembershipInput ¶
type GroupMembershipInput struct { GroupID uuid.UUID `json:"groupID"` Role groupmembership.Role `json:"role"` }
type MembershipInput ¶
type MembershipInput struct { UserID uuid.UUID `json:"userID"` Role membership.Role `json:"role"` }
type ProjectInput ¶
type ProjectInput struct { Name string `json:"name"` // Maximum number of CPU cores in the project (set to -1 for unlimited) QuotaCPU *int `json:"quotaCpu,omitempty"` // Maximum MiB of RAM in the project (set to -1 for unlimited) QuotaRAM *int `json:"quotaRam,omitempty"` // Maximum MiB of Disk in the project (set to -1 for unlimited) QuotaDisk *int `json:"quotaDisk,omitempty"` // Maximum number of networks in the project (set to -1 for unlimited) QuotaNetwork *int `json:"quotaNetwork,omitempty"` // Maximum number of routers in the project (set to -1 for unlimited) QuotaRouter *int `json:"quotaRouter,omitempty"` }
type ProjectPage ¶
type ProviderInput ¶
type ProviderPage ¶
type ResourceType ¶
type ResourceType string
const ( ResourceTypeResource ResourceType = "RESOURCE" ResourceTypeData ResourceType = "DATA" )
func (ResourceType) IsValid ¶
func (e ResourceType) IsValid() bool
func (ResourceType) MarshalGQL ¶
func (e ResourceType) MarshalGQL(w io.Writer)
func (ResourceType) String ¶
func (e ResourceType) String() string
func (*ResourceType) UnmarshalGQL ¶
func (e *ResourceType) UnmarshalGQL(v interface{}) error
type VarTypeMap ¶
type VarTypeMap map[string]models.BlueprintVariableType
Click to show internal directories.
Click to hide internal directories.