Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ObjectTypeLookup = map[ObjectType]string{ Image: "image", Kernel: "kernel", VM: "VM", }
Functions ¶
This section is empty.
Types ¶
type IDNameFilter ¶
type IDNameFilter struct {
// contains filtered or unexported fields
}
func NewIDNameFilter ¶
func NewIDNameFilter(p string) *IDNameFilter
func (*IDNameFilter) Filter ¶
func (n *IDNameFilter) Filter(f filter.Filterable) ([]string, error)
type Metadata ¶
type Metadata struct { ID string `json:"ID"` Name string `json:"Name"` Type ObjectType `json:"Type"` Created metav1.Time `json:"Created"` ObjectData `json:"ObjectData"` }
func NewMetadata ¶
func NewMetadata(id, name string, t ObjectType, data ObjectData) *Metadata
func (*Metadata) ObjectPath ¶
type ObjectData ¶
type ObjectData interface{}
type ObjectType ¶
type ObjectType int
const ( Image ObjectType = iota + 1 // Reserve 0 for unset Kernel VM )
func (ObjectType) MarshalJSON ¶
func (x ObjectType) MarshalJSON() ([]byte, error)
func (ObjectType) Path ¶
func (x ObjectType) Path() string
func (ObjectType) String ¶
func (x ObjectType) String() string
func (*ObjectType) UnmarshalJSON ¶
func (x *ObjectType) UnmarshalJSON(b []byte) error
Click to show internal directories.
Click to hide internal directories.