model

package
v0.0.0-...-42c0c98 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type AccountInput

type AccountInput struct {
	FirstName string `json:"FirstName"`
	LastName  string `json:"LastName"`
}

type ActionType

type ActionType string
const (
	ActionTypeSignIn             ActionType = "SIGN_IN"
	ActionTypeFailedSignIn       ActionType = "FAILED_SIGN_IN"
	ActionTypeSignOut            ActionType = "SIGN_OUT"
	ActionTypeAPICall            ActionType = "API_CALL"
	ActionTypeConsoleAccess      ActionType = "CONSOLE_ACCESS"
	ActionTypeReboot             ActionType = "REBOOT"
	ActionTypeShutdown           ActionType = "SHUTDOWN"
	ActionTypePowerOn            ActionType = "POWER_ON"
	ActionTypePowerOff           ActionType = "POWER_OFF"
	ActionTypeChangeSelfPassword ActionType = "CHANGE_SELF_PASSWORD"
	ActionTypeChangePassword     ActionType = "CHANGE_PASSWORD"
	ActionTypeCreateObject       ActionType = "CREATE_OBJECT"
	ActionTypeUpdateObject       ActionType = "UPDATE_OBJECT"
	ActionTypeDeleteObject       ActionType = "DELETE_OBJECT"
	ActionTypeUpdateLockout      ActionType = "UPDATE_LOCKOUT"
	ActionTypeUndefined          ActionType = "UNDEFINED"
)

func (ActionType) IsValid

func (e ActionType) IsValid() bool

func (ActionType) MarshalGQL

func (e ActionType) MarshalGQL(w io.Writer)

func (ActionType) String

func (e ActionType) String() string

func (*ActionType) UnmarshalGQL

func (e *ActionType) UnmarshalGQL(v interface{}) error

type ActionsResult

type ActionsResult struct {
	Results      []*ent.Action `json:"results"`
	Offset       int           `json:"offset"`
	Limit        int           `json:"limit"`
	Page         int           `json:"page"`
	TotalPages   int           `json:"totalPages"`
	TotalResults int           `json:"totalResults"`
	Types        []ActionType  `json:"types"`
}

type AuthProvider

type AuthProvider string
const (
	AuthProviderLocal     AuthProvider = "LOCAL"
	AuthProviderGitlab    AuthProvider = "GITLAB"
	AuthProviderUndefined AuthProvider = "UNDEFINED"
)

func (AuthProvider) IsValid

func (e AuthProvider) IsValid() bool

func (AuthProvider) MarshalGQL

func (e AuthProvider) MarshalGQL(w io.Writer)

func (AuthProvider) String

func (e AuthProvider) String() string

func (*AuthProvider) UnmarshalGQL

func (e *AuthProvider) UnmarshalGQL(v interface{}) error

type CompetitionInput

type CompetitionInput struct {
	ID                    *string `json:"ID"`
	Name                  string  `json:"Name"`
	CompetitionToProvider string  `json:"CompetitionToProvider"`
}

type CompetitionUser

type CompetitionUser struct {
	ID         string    `json:"ID"`
	Username   string    `json:"Username"`
	Password   string    `json:"Password"`
	UserToTeam *ent.Team `json:"UserToTeam"`
}

type ConsoleType

type ConsoleType string
const (
	ConsoleTypeNovnc  ConsoleType = "NOVNC"
	ConsoleTypeSpice  ConsoleType = "SPICE"
	ConsoleTypeRdp    ConsoleType = "RDP"
	ConsoleTypeSerial ConsoleType = "SERIAL"
	ConsoleTypeMks    ConsoleType = "MKS"
)

func (ConsoleType) IsValid

func (e ConsoleType) IsValid() bool

func (ConsoleType) MarshalGQL

func (e ConsoleType) MarshalGQL(w io.Writer)

func (ConsoleType) String

func (e ConsoleType) String() string

func (*ConsoleType) UnmarshalGQL

func (e *ConsoleType) UnmarshalGQL(v interface{}) error

type PowerState

type PowerState string
const (
	PowerStatePoweredOn    PowerState = "POWERED_ON"
	PowerStatePoweredOff   PowerState = "POWERED_OFF"
	PowerStateRebooting    PowerState = "REBOOTING"
	PowerStateShuttingDown PowerState = "SHUTTING_DOWN"
	PowerStateSuspended    PowerState = "SUSPENDED"
	PowerStateUnknown      PowerState = "UNKNOWN"
)

func (PowerState) IsValid

func (e PowerState) IsValid() bool

func (PowerState) MarshalGQL

func (e PowerState) MarshalGQL(w io.Writer)

func (PowerState) String

func (e PowerState) String() string

func (*PowerState) UnmarshalGQL

func (e *PowerState) UnmarshalGQL(v interface{}) error

type PowerStateUpdate

type PowerStateUpdate struct {
	ID    string     `json:"ID"`
	State PowerState `json:"State"`
}

type ProviderInput

type ProviderInput struct {
	ID     *string `json:"ID"`
	Name   string  `json:"Name"`
	Type   string  `json:"Type"`
	Config string  `json:"Config"`
}

type RebootType

type RebootType string
const (
	RebootTypeSoft RebootType = "SOFT"
	RebootTypeHard RebootType = "HARD"
)

func (RebootType) IsValid

func (e RebootType) IsValid() bool

func (RebootType) MarshalGQL

func (e RebootType) MarshalGQL(w io.Writer)

func (RebootType) String

func (e RebootType) String() string

func (*RebootType) UnmarshalGQL

func (e *RebootType) UnmarshalGQL(v interface{}) error

type Role

type Role string
const (
	RoleUser      Role = "USER"
	RoleAdmin     Role = "ADMIN"
	RoleUndefined Role = "UNDEFINED"
)

func (Role) IsValid

func (e Role) IsValid() bool

func (Role) MarshalGQL

func (e Role) MarshalGQL(w io.Writer)

func (Role) String

func (e Role) String() string

func (*Role) UnmarshalGQL

func (e *Role) UnmarshalGQL(v interface{}) error

type ServiceAccountDetails

type ServiceAccountDetails struct {
	ID          string `json:"ID"`
	DisplayName string `json:"DisplayName"`
	APIKey      string `json:"ApiKey"`
	APISecret   string `json:"ApiSecret"`
	Active      bool   `json:"Active"`
}

type ServiceAccountInput

type ServiceAccountInput struct {
	ID          *string `json:"ID"`
	DisplayName string  `json:"DisplayName"`
	Active      bool    `json:"Active"`
}

type SkeletonVMObject

type SkeletonVMObject struct {
	Name        string   `json:"Name"`
	Identifier  string   `json:"Identifier"`
	IPAddresses []string `json:"IPAddresses"`
}

type TeamInput

type TeamInput struct {
	ID                *string `json:"ID"`
	TeamNumber        int     `json:"TeamNumber"`
	Name              *string `json:"Name"`
	TeamToCompetition string  `json:"TeamToCompetition"`
}

type UserInput

type UserInput struct {
	ID         *string      `json:"ID"`
	Username   string       `json:"Username"`
	FirstName  string       `json:"FirstName"`
	LastName   string       `json:"LastName"`
	Role       Role         `json:"Role"`
	Provider   AuthProvider `json:"Provider"`
	UserToTeam *string      `json:"UserToTeam"`
}

type VMObjectInput

type VMObjectInput struct {
	ID             *string  `json:"ID"`
	Name           string   `json:"Name"`
	Identifier     string   `json:"Identifier"`
	IPAddresses    []string `json:"IPAddresses"`
	Locked         *bool    `json:"Locked"`
	VMObjectToTeam *string  `json:"VmObjectToTeam"`
}

Jump to

Keyboard shortcuts

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