Documentation ¶
Index ¶
- type Config
- type Resource
- type Resources
- func (resources Resources) Create(root, name string) (string, error)
- func (resources Resources) Get(root string, name string) (string, error)
- func (resources Resources) List(root string) (map[string]string, error)
- func (resources Resources) Release(root, name string) error
- func (resources Resources) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Resource ¶
type Resource struct { Mode string `json:"mode,omitempty" validate:"required,number,max=4,startswith=0,excludesall=89"` Tmpfs bool `json:"tmpfs,omitempty" validate:"required_with=Huge Size"` Huge string `json:"huge,omitempty" validate:"omitempty,oneof=always never within_size"` Size string `json:"size,omitempty" validate:"omitempty,min=2,max=4,endswith=%"` }
type Resources ¶
func (Resources) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.