Documentation ¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:openapi-gen=true
Index ¶
- Variables
- func RegisterDefaults(scheme *runtime.Scheme) error
- type DMID
- type IPAddresses
- type OCIContentID
- func (in *OCIContentID) DeepCopy() *OCIContentID
- func (in *OCIContentID) DeepCopyInto(out *OCIContentID)
- func (o *OCIContentID) Digest() digest.Digest
- func (o *OCIContentID) Local() bool
- func (o *OCIContentID) MarshalJSON() ([]byte, error)
- func (o *OCIContentID) RepoDigest() (n reference.Named)
- func (o *OCIContentID) SchemeString() string
- func (o *OCIContentID) String() string
- func (o *OCIContentID) UnmarshalJSON(b []byte) (err error)
- type OCIImageRef
- func (in *OCIImageRef) DeepCopy() *OCIImageRef
- func (in *OCIImageRef) DeepCopyInto(out *OCIImageRef)
- func (i OCIImageRef) IsUnset() bool
- func (i OCIImageRef) MarshalJSON() ([]byte, error)
- func (i OCIImageRef) Normalized() string
- func (i OCIImageRef) Ref() reference.NamedTagged
- func (i OCIImageRef) String() string
- func (i *OCIImageRef) UnmarshalJSON(b []byte) (err error)
- type PortMapping
- type PortMappings
- type Protocol
- type Size
- func (s Size) Add(other Size) Size
- func (in *Size) DeepCopy() *Size
- func (in *Size) DeepCopyInto(out *Size)
- func (s *Size) MarshalJSON() ([]byte, error)
- func (s Size) Max(other Size) Size
- func (s Size) Min(other Size) Size
- func (s Size) Sectors() uint64
- func (s Size) String() string
- func (s *Size) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
var EmptySize = NewSizeFromBytes(0)
Functions ¶
func RegisterDefaults ¶
RegisterDefaults adds defaulters functions to the given scheme. Public to allow building arbitrary schemes. All generated defaulters are covering - they call all nested defaulters.
Types ¶
type DMID ¶
type DMID struct {
// contains filtered or unexported fields
}
DMID specifies the format for device mapper IDs
func NewPoolDMID ¶
func NewPoolDMID() DMID
func (*DMID) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DMID.
func (*DMID) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type IPAddresses ¶
IPAddresses represents a list of VM IP addresses
func (IPAddresses) DeepCopy ¶
func (in IPAddresses) DeepCopy() IPAddresses
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IPAddresses.
func (IPAddresses) DeepCopyInto ¶
func (in IPAddresses) DeepCopyInto(out *IPAddresses)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (IPAddresses) String ¶
func (i IPAddresses) String() string
type OCIContentID ¶ added in v0.5.0
type OCIContentID struct {
// contains filtered or unexported fields
}
func ParseOCIContentID ¶ added in v0.5.0
func ParseOCIContentID(str string) (*OCIContentID, error)
ParseOCIContentID takes in a string to parse into an *OCIContentID If given a local Docker SHA like "sha256:3285f65b2651c68b5316e7a1fbabd30b5ae47914ac5791ac4bb9d59d029b924b", it will be parsed into the local format, encoded as "docker://<SHA>". Given a full repo digest, such as "weaveworks/ignite-ubuntu@sha256:3285f65b2651c68b5316e7a1fbabd30b5ae47914ac5791ac4bb9d59d029b924b", it will be parsed into the OCI registry format, encoded as "oci://<full path>@<SHA>".
func (*OCIContentID) DeepCopy ¶ added in v0.5.0
func (in *OCIContentID) DeepCopy() *OCIContentID
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCIContentID.
func (*OCIContentID) DeepCopyInto ¶ added in v0.5.0
func (in *OCIContentID) DeepCopyInto(out *OCIContentID)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*OCIContentID) Digest ¶ added in v0.5.0
func (o *OCIContentID) Digest() digest.Digest
Digest gets the digest of the content ID
func (*OCIContentID) Local ¶ added in v0.5.0
func (o *OCIContentID) Local() bool
Local returns true if the image has no repoName, i.e. it's not available from a registry
func (*OCIContentID) MarshalJSON ¶ added in v0.5.0
func (o *OCIContentID) MarshalJSON() ([]byte, error)
func (*OCIContentID) RepoDigest ¶ added in v0.5.0
func (o *OCIContentID) RepoDigest() (n reference.Named)
RepoDigest returns a repo digest based on the OCIContentID if it is not local
func (*OCIContentID) SchemeString ¶ added in v0.6.0
func (o *OCIContentID) SchemeString() string
Scheme returns the string representation with the scheme prefix
func (*OCIContentID) String ¶ added in v0.5.0
func (o *OCIContentID) String() string
String returns the string representation for either format
func (*OCIContentID) UnmarshalJSON ¶ added in v0.5.0
func (o *OCIContentID) UnmarshalJSON(b []byte) (err error)
type OCIImageRef ¶
type OCIImageRef struct {
// contains filtered or unexported fields
}
OCIImageRef is a struct containing a names and tagged reference by which an OCI runtime can identify an image to retrieve.
func NewOCIImageRef ¶
func NewOCIImageRef(imageStr string) (o OCIImageRef, err error)
NewOCIImageRef parses and normalizes a reference to an OCI (docker) image.
func (*OCIImageRef) DeepCopy ¶ added in v0.6.0
func (in *OCIImageRef) DeepCopy() *OCIImageRef
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OCIImageRef.
func (*OCIImageRef) DeepCopyInto ¶ added in v0.6.0
func (in *OCIImageRef) DeepCopyInto(out *OCIImageRef)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (OCIImageRef) IsUnset ¶
func (i OCIImageRef) IsUnset() bool
func (OCIImageRef) MarshalJSON ¶
func (i OCIImageRef) MarshalJSON() ([]byte, error)
func (OCIImageRef) Normalized ¶ added in v0.6.0
func (i OCIImageRef) Normalized() string
Normalized returns the normalized reference, e.g. "docker.io/weaveworks/ignite-ubuntu:latest"
func (OCIImageRef) Ref ¶ added in v0.6.0
func (i OCIImageRef) Ref() reference.NamedTagged
Ref parses the internal strings to a reference.NamedTagged
func (OCIImageRef) String ¶
func (i OCIImageRef) String() string
String returns the familiar form of the reference, e.g. "weaveworks/ignite-ubuntu:latest"
func (*OCIImageRef) UnmarshalJSON ¶
func (i *OCIImageRef) UnmarshalJSON(b []byte) (err error)
type PortMapping ¶
type PortMapping struct { BindAddress net.IP `json:"bindAddress,omitempty"` HostPort uint64 `json:"hostPort"` VMPort uint64 `json:"vmPort"` Protocol Protocol `json:"protocol,omitempty"` }
PortMapping defines a port mapping between the VM and the host
func (*PortMapping) DeepCopy ¶
func (in *PortMapping) DeepCopy() *PortMapping
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortMapping.
func (*PortMapping) DeepCopyInto ¶
func (in *PortMapping) DeepCopyInto(out *PortMapping)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PortMapping) String ¶
func (p PortMapping) String() string
type PortMappings ¶
type PortMappings []PortMapping
PortMappings represents a list of port mappings
func ParsePortMappings ¶
func ParsePortMappings(input []string) (PortMappings, error)
func (PortMappings) DeepCopy ¶
func (in PortMappings) DeepCopy() PortMappings
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PortMappings.
func (PortMappings) DeepCopyInto ¶
func (in PortMappings) DeepCopyInto(out *PortMappings)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PortMappings) String ¶
func (p PortMappings) String() string
type Protocol ¶ added in v0.5.0
type Protocol string
Protocol specifies a network port protocol
func (*Protocol) UnmarshalJSON ¶ added in v0.5.0
type Size ¶
Size specifies a common unit for data sizes
func NewSizeFromBytes ¶
func NewSizeFromSectors ¶
func NewSizeFromString ¶
func (*Size) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Size.
func (*Size) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Size) MarshalJSON ¶
func (Size) String ¶
Override ByteSize's default string implementation which results in .HR() without spaces