Documentation ¶
Overview ¶
Package v2beta1 is the initial version of types which integrate with the Kubernetes API.
Contains the Stack Definition Language(pkg: github.com/akash-network/node/sdl) Manifest declarations which are written to Kubernetes CRDs for storage.
Manifest { ManifestSpec { k8s.TypeMeta LeaseID ManifestGroup k8s.TypeMeta Name []*ManifestService // ManifestService analogous to a running container. ManifestStatus State Message }
Index ¶
- Constants
- Variables
- func Resource(resource string) schema.GroupResource
- type Inventory
- type InventoryClusterStorage
- type InventoryList
- type InventoryRequest
- type InventoryRequestList
- type InventoryRequestSpec
- type InventoryRequestStatus
- type InventorySpec
- type InventoryState
- type InventoryStatus
- type LeaseID
- type Manifest
- type ManifestGroup
- type ManifestList
- type ManifestService
- type ManifestServiceExpose
- type ManifestServiceExposeHTTPOptions
- type ManifestServiceParams
- type ManifestServiceStorage
- type ManifestSpec
- type ManifestStatus
- type ManifestStorageParams
- type ProviderHost
- type ProviderHostList
- type ProviderHostSpec
- type ProviderHostStatus
- type ProviderLeasedIP
- type ProviderLeasedIPList
- type ProviderLeasedIPSpec
- type ProviderLeasedIPStatus
- type ResourcePair
- type ResourceUnits
Constants ¶
const ( InventoryStatePulled = InventoryState("PULLED") InventoryStateError = InventoryState("ERROR") )
Variables ¶
var ( // AddToScheme applies all the stored functions to the scheme AddToScheme = schemeBuilder.AddToScheme // SchemeGroupVersion creates a Rest client with the new CRD Schema SchemeGroupVersion = schema.GroupVersion{Group: crdGroup, Version: crdVersion} )
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type Inventory ¶
type Inventory struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec InventorySpec `json:"spec,omitempty"` Status InventoryStatus `json:"status,omitempty"` }
Inventory +genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*Inventory) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inventory.
func (*Inventory) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Inventory) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InventoryClusterStorage ¶
type InventoryClusterStorage struct { Class string `json:"class,omitempty"` ResourcePair `json:",inline"` }
func (*InventoryClusterStorage) DeepCopy ¶
func (in *InventoryClusterStorage) DeepCopy() *InventoryClusterStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryClusterStorage.
func (*InventoryClusterStorage) DeepCopyInto ¶
func (in *InventoryClusterStorage) DeepCopyInto(out *InventoryClusterStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventoryList ¶
type InventoryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Inventory `json:"items"` }
InventoryList stores metadata and items list of storage class states +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*InventoryList) DeepCopy ¶
func (in *InventoryList) DeepCopy() *InventoryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryList.
func (*InventoryList) DeepCopyInto ¶
func (in *InventoryList) DeepCopyInto(out *InventoryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InventoryList) DeepCopyObject ¶
func (in *InventoryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InventoryRequest ¶
type InventoryRequest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec InventoryRequestSpec `json:"spec,omitempty"` Status InventoryRequestStatus `json:"status,omitempty"` }
InventoryRequest +genclient +genclient:nonNamespaced +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*InventoryRequest) DeepCopy ¶
func (in *InventoryRequest) DeepCopy() *InventoryRequest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryRequest.
func (*InventoryRequest) DeepCopyInto ¶
func (in *InventoryRequest) DeepCopyInto(out *InventoryRequest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InventoryRequest) DeepCopyObject ¶
func (in *InventoryRequest) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InventoryRequestList ¶
type InventoryRequestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []InventoryRequest `json:"items"` }
InventoryRequestList stores metadata and items list of storage class states +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*InventoryRequestList) DeepCopy ¶
func (in *InventoryRequestList) DeepCopy() *InventoryRequestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryRequestList.
func (*InventoryRequestList) DeepCopyInto ¶
func (in *InventoryRequestList) DeepCopyInto(out *InventoryRequestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*InventoryRequestList) DeepCopyObject ¶
func (in *InventoryRequestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type InventoryRequestSpec ¶
type InventoryRequestSpec struct {
Name string `json:"name"`
}
func (*InventoryRequestSpec) DeepCopy ¶
func (in *InventoryRequestSpec) DeepCopy() *InventoryRequestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryRequestSpec.
func (*InventoryRequestSpec) DeepCopyInto ¶
func (in *InventoryRequestSpec) DeepCopyInto(out *InventoryRequestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventoryRequestStatus ¶
type InventoryRequestStatus struct { State string `json:"state,omitempty"` Message string `json:"message,omitempty"` }
func (*InventoryRequestStatus) DeepCopy ¶
func (in *InventoryRequestStatus) DeepCopy() *InventoryRequestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryRequestStatus.
func (*InventoryRequestStatus) DeepCopyInto ¶
func (in *InventoryRequestStatus) DeepCopyInto(out *InventoryRequestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventorySpec ¶
type InventorySpec struct {
Storage []InventoryClusterStorage `json:"storage"`
}
func (*InventorySpec) DeepCopy ¶
func (in *InventorySpec) DeepCopy() *InventorySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventorySpec.
func (*InventorySpec) DeepCopyInto ¶
func (in *InventorySpec) DeepCopyInto(out *InventorySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type InventoryState ¶
type InventoryState string
type InventoryStatus ¶
type InventoryStatus struct { State InventoryState `json:"state,omitempty"` Messages []string `json:"message,omitempty"` }
func (*InventoryStatus) DeepCopy ¶
func (in *InventoryStatus) DeepCopy() *InventoryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InventoryStatus.
func (*InventoryStatus) DeepCopyInto ¶
func (in *InventoryStatus) DeepCopyInto(out *InventoryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LeaseID ¶
type LeaseID struct { Owner string `json:"owner"` DSeq string `json:"dseq"` GSeq uint32 `json:"gseq"` OSeq uint32 `json:"oseq"` Provider string `json:"provider"` }
LeaseID stores deployment, group sequence, order, provider and metadata
func LeaseIDFromAkash ¶
LeaseIDFromAkash returns LeaseID instance from akash
func (*LeaseID) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseID.
func (*LeaseID) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Manifest ¶
type Manifest struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec ManifestSpec `json:"spec,omitempty"` Status ManifestStatus `json:"status,omitempty"` }
Manifest store metadata, specifications and status of the Lease
func NewManifest ¶
NewManifest creates new manifest with provided details. Returns error in case of failure.
func (*Manifest) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifest.
func (*Manifest) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Manifest) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Manifest) Deployment ¶
func (m Manifest) Deployment() (ctypes.Deployment, error)
Deployment returns the cluster.Deployment that the saved manifest represents.
type ManifestGroup ¶
type ManifestGroup struct { // Placement profile name Name string `json:"name,omitempty"` // Service definitions Services []ManifestService `json:"services,omitempty"` }
ManifestGroup stores metadata, name and list of SDL manifest services
func (*ManifestGroup) DeepCopy ¶
func (in *ManifestGroup) DeepCopy() *ManifestGroup
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestGroup.
func (*ManifestGroup) DeepCopyInto ¶
func (in *ManifestGroup) DeepCopyInto(out *ManifestGroup)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestList ¶
type ManifestList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Manifest `json:"items"` }
ManifestList stores metadata and items list of manifest
func (*ManifestList) DeepCopy ¶
func (in *ManifestList) DeepCopy() *ManifestList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestList.
func (*ManifestList) DeepCopyInto ¶
func (in *ManifestList) DeepCopyInto(out *ManifestList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ManifestList) DeepCopyObject ¶
func (in *ManifestList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ManifestService ¶
type ManifestService struct { // Service name Name string `json:"name,omitempty"` // Docker image Image string `json:"image,omitempty"` Command []string `json:"command,omitempty"` Args []string `json:"args,omitempty"` Env []string `json:"env,omitempty"` // Resource requirements // in current version of CRD it is named as unit Resources ResourceUnits `json:"unit"` // Number of instances Count uint32 `json:"count,omitempty"` // Overlay Network Links Expose []ManifestServiceExpose `json:"expose,omitempty"` // Miscellaneous service parameters Params *ManifestServiceParams `json:"params,omitempty"` }
ManifestService stores name, image, args, env, unit, count and expose list of service
func (*ManifestService) DeepCopy ¶
func (in *ManifestService) DeepCopy() *ManifestService
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestService.
func (*ManifestService) DeepCopyInto ¶
func (in *ManifestService) DeepCopyInto(out *ManifestService)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestServiceExpose ¶
type ManifestServiceExpose struct { Port uint16 `json:"port,omitempty"` ExternalPort uint16 `json:"external_port,omitempty"` Proto string `json:"proto,omitempty"` Service string `json:"service,omitempty"` Global bool `json:"global,omitempty"` // accepted hostnames Hosts []string `json:"hosts,omitempty"` HTTPOptions ManifestServiceExposeHTTPOptions `json:"http_options,omitempty"` IP string `json:"ip,omitempty"` EndpointSequenceNumber uint32 `json:"endpoint_sequence_number"` }
ManifestServiceExpose stores exposed ports and accepted hosts details
func (*ManifestServiceExpose) DeepCopy ¶
func (in *ManifestServiceExpose) DeepCopy() *ManifestServiceExpose
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestServiceExpose.
func (*ManifestServiceExpose) DeepCopyInto ¶
func (in *ManifestServiceExpose) DeepCopyInto(out *ManifestServiceExpose)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ManifestServiceExpose) DetermineExposedExternalPort ¶
func (mse ManifestServiceExpose) DetermineExposedExternalPort() uint16
type ManifestServiceExposeHTTPOptions ¶
type ManifestServiceExposeHTTPOptions struct { MaxBodySize uint32 `json:"max_body_size,omitempty"` ReadTimeout uint32 `json:"read_timeout,omitempty"` SendTimeout uint32 `json:"send_timeout,omitempty"` NextTries uint32 `json:"next_tries,omitempty"` NextTimeout uint32 `json:"next_timeout,omitempty"` NextCases []string `json:"next_cases,omitempty"` }
func (*ManifestServiceExposeHTTPOptions) DeepCopy ¶
func (in *ManifestServiceExposeHTTPOptions) DeepCopy() *ManifestServiceExposeHTTPOptions
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestServiceExposeHTTPOptions.
func (*ManifestServiceExposeHTTPOptions) DeepCopyInto ¶
func (in *ManifestServiceExposeHTTPOptions) DeepCopyInto(out *ManifestServiceExposeHTTPOptions)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestServiceParams ¶
type ManifestServiceParams struct {
Storage []ManifestStorageParams `json:"storage,omitempty"`
}
func (*ManifestServiceParams) DeepCopy ¶
func (in *ManifestServiceParams) DeepCopy() *ManifestServiceParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestServiceParams.
func (*ManifestServiceParams) DeepCopyInto ¶
func (in *ManifestServiceParams) DeepCopyInto(out *ManifestServiceParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestServiceStorage ¶
func (*ManifestServiceStorage) DeepCopy ¶
func (in *ManifestServiceStorage) DeepCopy() *ManifestServiceStorage
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestServiceStorage.
func (*ManifestServiceStorage) DeepCopyInto ¶
func (in *ManifestServiceStorage) DeepCopyInto(out *ManifestServiceStorage)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestSpec ¶
type ManifestSpec struct { LeaseID LeaseID `json:"lease_id"` Group ManifestGroup `json:"group"` }
ManifestSpec stores LeaseID, Group and metadata details
func (*ManifestSpec) DeepCopy ¶
func (in *ManifestSpec) DeepCopy() *ManifestSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestSpec.
func (*ManifestSpec) DeepCopyInto ¶
func (in *ManifestSpec) DeepCopyInto(out *ManifestSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestStatus ¶
type ManifestStatus struct { State string `json:"state,omitempty"` Message string `json:"message,omitempty"` }
ManifestStatus stores state and message of manifest
func (*ManifestStatus) DeepCopy ¶
func (in *ManifestStatus) DeepCopy() *ManifestStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestStatus.
func (*ManifestStatus) DeepCopyInto ¶
func (in *ManifestStatus) DeepCopyInto(out *ManifestStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ManifestStorageParams ¶
type ManifestStorageParams struct { Name string `json:"name" yaml:"name"` Mount string `json:"mount" yaml:"mount"` ReadOnly bool `json:"readOnly" yaml:"readOnly"` }
func (*ManifestStorageParams) DeepCopy ¶
func (in *ManifestStorageParams) DeepCopy() *ManifestStorageParams
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestStorageParams.
func (*ManifestStorageParams) DeepCopyInto ¶
func (in *ManifestStorageParams) DeepCopyInto(out *ManifestStorageParams)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderHost ¶
type ProviderHost struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec ProviderHostSpec `json:"spec,omitempty"` Status ProviderHostStatus `json:"status,omitempty"` }
func (*ProviderHost) DeepCopy ¶
func (in *ProviderHost) DeepCopy() *ProviderHost
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderHost.
func (*ProviderHost) DeepCopyInto ¶
func (in *ProviderHost) DeepCopyInto(out *ProviderHost)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderHost) DeepCopyObject ¶
func (in *ProviderHost) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderHostList ¶
type ProviderHostList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ProviderHost `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ProviderHostList) DeepCopy ¶
func (in *ProviderHostList) DeepCopy() *ProviderHostList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderHostList.
func (*ProviderHostList) DeepCopyInto ¶
func (in *ProviderHostList) DeepCopyInto(out *ProviderHostList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderHostList) DeepCopyObject ¶
func (in *ProviderHostList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderHostSpec ¶
type ProviderHostSpec struct { Owner string `json:"owner"` Provider string `json:"provider"` Hostname string `json:"hostname"` Dseq uint64 `json:"dseq"` Gseq uint32 `json:"gseq"` Oseq uint32 `json:"oseq"` ServiceName string `json:"service_name"` ExternalPort uint32 `json:"external_port"` }
func (*ProviderHostSpec) DeepCopy ¶
func (in *ProviderHostSpec) DeepCopy() *ProviderHostSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderHostSpec.
func (*ProviderHostSpec) DeepCopyInto ¶
func (in *ProviderHostSpec) DeepCopyInto(out *ProviderHostSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderHostStatus ¶
type ProviderHostStatus struct { State string `json:"state,omitempty"` Message string `json:"message,omitempty"` }
func (*ProviderHostStatus) DeepCopy ¶
func (in *ProviderHostStatus) DeepCopy() *ProviderHostStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderHostStatus.
func (*ProviderHostStatus) DeepCopyInto ¶
func (in *ProviderHostStatus) DeepCopyInto(out *ProviderHostStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderLeasedIP ¶
type ProviderLeasedIP struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata"` Spec ProviderLeasedIPSpec `json:"spec,omitempty"` Status ProviderLeasedIPStatus `json:"status,omitempty"` }
+genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ProviderLeasedIP) DeepCopy ¶
func (in *ProviderLeasedIP) DeepCopy() *ProviderLeasedIP
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderLeasedIP.
func (*ProviderLeasedIP) DeepCopyInto ¶
func (in *ProviderLeasedIP) DeepCopyInto(out *ProviderLeasedIP)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderLeasedIP) DeepCopyObject ¶
func (in *ProviderLeasedIP) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderLeasedIPList ¶
type ProviderLeasedIPList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []ProviderLeasedIP `json:"items"` }
+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
func (*ProviderLeasedIPList) DeepCopy ¶
func (in *ProviderLeasedIPList) DeepCopy() *ProviderLeasedIPList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderLeasedIPList.
func (*ProviderLeasedIPList) DeepCopyInto ¶
func (in *ProviderLeasedIPList) DeepCopyInto(out *ProviderLeasedIPList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ProviderLeasedIPList) DeepCopyObject ¶
func (in *ProviderLeasedIPList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ProviderLeasedIPSpec ¶
type ProviderLeasedIPSpec struct { LeaseID LeaseID `json:"lease_id"` ServiceName string `json:"service_name"` Port uint32 `json:"port"` ExternalPort uint32 `json:"external_port"` SharingKey string `json:"sharing_key"` Protocol string `json:"protocol"` }
func (*ProviderLeasedIPSpec) DeepCopy ¶
func (in *ProviderLeasedIPSpec) DeepCopy() *ProviderLeasedIPSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderLeasedIPSpec.
func (*ProviderLeasedIPSpec) DeepCopyInto ¶
func (in *ProviderLeasedIPSpec) DeepCopyInto(out *ProviderLeasedIPSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ProviderLeasedIPStatus ¶
type ProviderLeasedIPStatus struct { State string `json:"state,omitempty"` Message string `json:"message,omitempty"` }
func (*ProviderLeasedIPStatus) DeepCopy ¶
func (in *ProviderLeasedIPStatus) DeepCopy() *ProviderLeasedIPStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ProviderLeasedIPStatus.
func (*ProviderLeasedIPStatus) DeepCopyInto ¶
func (in *ProviderLeasedIPStatus) DeepCopyInto(out *ProviderLeasedIPStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourcePair ¶
type ResourcePair struct { Allocatable uint64 `json:"allocatable"` Allocated uint64 `json:"allocated"` }
func (*ResourcePair) DeepCopy ¶
func (in *ResourcePair) DeepCopy() *ResourcePair
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourcePair.
func (*ResourcePair) DeepCopyInto ¶
func (in *ResourcePair) DeepCopyInto(out *ResourcePair)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResourceUnits ¶
type ResourceUnits struct { CPU uint32 `json:"cpu,omitempty"` Memory string `json:"memory,omitempty"` Storage []ManifestServiceStorage `json:"storage,omitempty"` }
ResourceUnits stores cpu, memory and storage details
func (*ResourceUnits) DeepCopy ¶
func (in *ResourceUnits) DeepCopy() *ResourceUnits
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceUnits.
func (*ResourceUnits) DeepCopyInto ¶
func (in *ResourceUnits) DeepCopyInto(out *ResourceUnits)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ResourceUnits) ToAkash ¶
func (ru ResourceUnits) ToAkash() (types.ResourceUnits, error)