model

package
v0.0.0-...-e59a564 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

func MarshalPowerState

func MarshalPowerState(v pgrpc.PowerState) graphql.Marshaler

func MarshalStrMap

func MarshalStrMap(val map[string]string) graphql.Marshaler

func MarshalUUID

func MarshalUUID(val uuid.UUID) graphql.Marshaler

func UnmarshalPowerState

func UnmarshalPowerState(v interface{}) (pgrpc.PowerState, error)

func UnmarshalStrMap

func UnmarshalStrMap(v interface{}) (map[string]string, error)

func UnmarshalUUID

func UnmarshalUUID(v interface{}) (uuid.UUID, error)

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 BlueprintPage struct {
	Blueprints []*ent.Blueprint `json:"blueprints"`
	Total      int              `json:"total"`
}

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 GroupPage

type GroupPage struct {
	Groups []*ent.Group `json:"groups"`
	Total  int          `json:"total"`
}

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 ProjectPage struct {
	Projects []*ent.Project `json:"projects"`
	Total    int            `json:"total"`
}

type ProviderInput

type ProviderInput struct {
	DisplayName     string `json:"displayName"`
	ProviderGitURL  string `json:"providerGitUrl"`
	ProviderVersion string `json:"providerVersion"`
	ConfigBytes     string `json:"configBytes"`
}

type ProviderPage

type ProviderPage struct {
	Providers []*ent.Provider `json:"providers"`
	Total     int             `json:"total"`
}

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 StrMap

type StrMap map[string]string

type UUID

type UUID uuid.UUID

type UserInput

type UserInput struct {
	Username  string `json:"username"`
	Email     string `json:"email"`
	FirstName string `json:"firstName"`
	LastName  string `json:"lastName"`
}

type UserPage

type UserPage struct {
	Users []*ent.User `json:"users"`
	Total int         `json:"total"`
}

type VarTypeMap

type VarTypeMap map[string]models.BlueprintVariableType

Jump to

Keyboard shortcuts

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