Documentation
¶
Index ¶
Constants ¶
View Source
const (
All = "all"
)
Variables ¶
View Source
var ACLs sync.Map
View Source
var ( // A list of all the roles. Currently, the roles // are defined statically within the program Roles = []Role{} )
Functions ¶
This section is empty.
Types ¶
type ACL ¶
type ACL struct {
NetworkAccess bool `json:"network_access,omitempty"`
MountAccess bool `json:"mount_access,omitempty"`
QueueAccess []string `json:"queue_access,omitempty"`
DockerPush bool `json:"docker_push,omitempty"`
Limit Limit `json:"limit,omitempty"`
}
easyjson:json
func (ACL) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (ACL) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*ACL) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*ACL) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
type Limit ¶
type Limit struct {
Runtime time.Duration `json:"runtime,omitempty"`
Storage uint64 `json:"storage,omitempty"`
MountStorage uint64 `json:"mount_storage,omitempty"`
NumberOfGPUs uint64 `json:"number_of_gpus,omitempty"`
CPUArchitecture string `json:"cpu_architecture,omitempty"`
}
easyjson:json
func (Limit) MarshalEasyJSON ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Limit) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Limit) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Limit) UnmarshalJSON ¶
UnmarshalJSON supports json.Unmarshaler interface
Click to show internal directories.
Click to hide internal directories.