v2beta2

package
v0.6.5-rc0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InventoryStatePulled = InventoryState("PULLED")
	InventoryStateError  = InventoryState("ERROR")
)

Variables

View Source
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}
)
View Source
var (
	ErrInvalidArgs = fmt.Errorf("crd/%s: invalid args", crdVersion)
)

Functions

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type ClusterSettings

type ClusterSettings struct {
	SchedulerParams []*SchedulerParams `json:"scheduler_params"`
}

func (*ClusterSettings) DeepCopy

func (in *ClusterSettings) DeepCopy() *ClusterSettings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSettings.

func (*ClusterSettings) DeepCopyInto

func (in *ClusterSettings) DeepCopyInto(out *ClusterSettings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type GPUCapabilities

type GPUCapabilities struct {
	Vendor string `json:"vendor" capabilities:"vendor"`
	Model  string `json:"string" capabilities:"model"`
}

func (*GPUCapabilities) DeepCopy

func (in *GPUCapabilities) DeepCopy() *GPUCapabilities

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GPUCapabilities.

func (*GPUCapabilities) DeepCopyInto

func (in *GPUCapabilities) DeepCopyInto(out *GPUCapabilities)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

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

func (in *Inventory) DeepCopy() *Inventory

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Inventory.

func (*Inventory) DeepCopyInto

func (in *Inventory) DeepCopyInto(out *Inventory)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Inventory) DeepCopyObject

func (in *Inventory) DeepCopyObject() runtime.Object

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

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

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

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

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

func LeaseIDFromAkash(id mtypes.LeaseID) LeaseID

LeaseIDFromAkash returns LeaseID instance from akash

func (*LeaseID) DeepCopy

func (in *LeaseID) DeepCopy() *LeaseID

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LeaseID.

func (*LeaseID) DeepCopyInto

func (in *LeaseID) DeepCopyInto(out *LeaseID)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (LeaseID) FromCRD

func (id LeaseID) FromCRD() (mtypes.LeaseID, error)

FromCRD returns LeaseID from LeaseID details

type Manifest

type Manifest struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`

	Spec ManifestSpec `json:"spec,omitempty"`
}

Manifest store metadata, specifications and status of the Lease +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func NewManifest

func NewManifest(ns string, lid mtypes.LeaseID, mgroup *mani.Group, settings ClusterSettings) (*Manifest, error)

NewManifest creates new manifest with provided details. Returns error in case of failure.

func (*Manifest) DeepCopy

func (in *Manifest) DeepCopy() *Manifest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Manifest.

func (*Manifest) DeepCopyInto

func (in *Manifest) DeepCopyInto(out *Manifest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Manifest) DeepCopyObject

func (in *Manifest) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

func (*Manifest) Deployment

func (m *Manifest) Deployment() (ctypes.IDeployment, 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.

func (*ManifestGroup) FromCRD

func (m *ManifestGroup) FromCRD() (mani.Group, []*SchedulerParams, error)

FromCRD returns akash group details formatted from manifest group

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 +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

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"`
	Resources Resources `json:"resources"`
	// Number of instances
	Count uint32 `json:"count,omitempty"`
	// Overlay Network Links
	Expose []ManifestServiceExpose `json:"expose,omitempty"`
	// Miscellaneous service parameters
	Params          *ManifestServiceParams      `json:"params,omitempty"`
	SchedulerParams *SchedulerParams            `json:"scheduler_params,omitempty"`
	Credentials     *ManifestServiceCredentials `json:"credentials,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 ManifestServiceCredentials

type ManifestServiceCredentials struct {
	Host     string `json:"host"`
	Email    string `json:"email"`
	Username string `json:"username"`
	Password string `json:"password"`
}

ManifestServiceCredentials stores docker registry credentials

func (*ManifestServiceCredentials) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestServiceCredentials.

func (*ManifestServiceCredentials) DeepCopyInto

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"`
	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

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

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ManifestServiceExposeHTTPOptions.

func (*ManifestServiceExposeHTTPOptions) DeepCopyInto

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

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 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

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 NodeInfoCapabilities

type NodeInfoCapabilities struct {
	GPU     GPUCapabilities     `json:"gpu" capabilities:"gpu"`
	Storage StorageCapabilities `json:"storage" capabilities:"storage"`
}

func (*NodeInfoCapabilities) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NodeInfoCapabilities.

func (*NodeInfoCapabilities) DeepCopyInto

func (in *NodeInfoCapabilities) DeepCopyInto(out *NodeInfoCapabilities)

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"`
}

ProviderHost +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

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"`
}

ProviderHostList +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"`
}

ProviderLeasedIP +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"`
}

ProviderLeasedIPList +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*ProviderLeasedIPList) DeepCopy

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

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

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 ReservationClusterSettings

type ReservationClusterSettings map[uint32]*SchedulerParams

func (ReservationClusterSettings) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ReservationClusterSettings.

func (ReservationClusterSettings) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ResourceCPU

type ResourceCPU struct {
	Units      uint32           `json:"units"`
	Attributes types.Attributes `json:"attributes,omitempty"`
}

func (*ResourceCPU) DeepCopy

func (in *ResourceCPU) DeepCopy() *ResourceCPU

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceCPU.

func (*ResourceCPU) DeepCopyInto

func (in *ResourceCPU) DeepCopyInto(out *ResourceCPU)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ResourceCPU) ToAkash

func (ru ResourceCPU) ToAkash() *types.CPU

type ResourceGPU

type ResourceGPU struct {
	Units      uint32           `json:"units"`
	Attributes types.Attributes `json:"attributes,omitempty"`
}

func (*ResourceGPU) DeepCopy

func (in *ResourceGPU) DeepCopy() *ResourceGPU

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceGPU.

func (*ResourceGPU) DeepCopyInto

func (in *ResourceGPU) DeepCopyInto(out *ResourceGPU)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ResourceGPU) ToAkash

func (ru ResourceGPU) ToAkash() *types.GPU

type ResourceMemory

type ResourceMemory struct {
	Size       string           `json:"size"`
	Attributes types.Attributes `json:"attributes,omitempty"`
}

func (*ResourceMemory) DeepCopy

func (in *ResourceMemory) DeepCopy() *ResourceMemory

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMemory.

func (*ResourceMemory) DeepCopyInto

func (in *ResourceMemory) DeepCopyInto(out *ResourceMemory)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ResourceMemory) ToAkash

func (ru ResourceMemory) ToAkash() *types.Memory

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 ResourceStorage

type ResourceStorage []ResourceVolume

func (ResourceStorage) DeepCopy

func (in ResourceStorage) DeepCopy() ResourceStorage

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceStorage.

func (ResourceStorage) DeepCopyInto

func (in ResourceStorage) DeepCopyInto(out *ResourceStorage)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ResourceStorage) ToAkash

func (ru ResourceStorage) ToAkash() types.Volumes

type ResourceVolume

type ResourceVolume struct {
	Name       string           `json:"name"`
	Size       string           `json:"size"`
	Attributes types.Attributes `json:"attributes,omitempty"`
}

func (*ResourceVolume) DeepCopy

func (in *ResourceVolume) DeepCopy() *ResourceVolume

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceVolume.

func (*ResourceVolume) DeepCopyInto

func (in *ResourceVolume) DeepCopyInto(out *ResourceVolume)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (ResourceVolume) ToAkash

func (ru ResourceVolume) ToAkash() types.Storage

type Resources

type Resources struct {
	ID      uint32          `json:"id"`
	CPU     ResourceCPU     `json:"cpu"`
	GPU     ResourceGPU     `json:"gpu"`
	Memory  ResourceMemory  `json:"memory"`
	Storage ResourceStorage `json:"storage,omitempty"`
}

Resources stores cpu, memory and storage details

func (*Resources) DeepCopy

func (in *Resources) DeepCopy() *Resources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Resources.

func (*Resources) DeepCopyInto

func (in *Resources) DeepCopyInto(out *Resources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Resources) ToAkash

func (ru *Resources) ToAkash() (types.Resources, error)

type SchedulerParams

type SchedulerParams struct {
	RuntimeClass string              `json:"runtime_class"`
	Resources    *SchedulerResources `json:"resources,omitempty"`
}

func (*SchedulerParams) DeepCopy

func (in *SchedulerParams) DeepCopy() *SchedulerParams

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerParams.

func (*SchedulerParams) DeepCopyInto

func (in *SchedulerParams) DeepCopyInto(out *SchedulerParams)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SchedulerResourceGPU

type SchedulerResourceGPU struct {
	Vendor     string `json:"vendor"`
	Model      string `json:"model"`
	MemorySize string `json:"memory_size"`
	Interface  string `json:"interface"`
}

func (*SchedulerResourceGPU) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerResourceGPU.

func (*SchedulerResourceGPU) DeepCopyInto

func (in *SchedulerResourceGPU) DeepCopyInto(out *SchedulerResourceGPU)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SchedulerResources

type SchedulerResources struct {
	GPU *SchedulerResourceGPU `json:"gpu"`
}

func (*SchedulerResources) DeepCopy

func (in *SchedulerResources) DeepCopy() *SchedulerResources

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerResources.

func (*SchedulerResources) DeepCopyInto

func (in *SchedulerResources) DeepCopyInto(out *SchedulerResources)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Status

type Status struct {
	State   string `json:"state,omitempty"`
	Message string `json:"message,omitempty"`
}

func (*Status) DeepCopy

func (in *Status) DeepCopy() *Status

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.

func (*Status) DeepCopyInto

func (in *Status) DeepCopyInto(out *Status)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StorageCapabilities

type StorageCapabilities struct {
	Classes []string `json:"classes"`
}

func (*StorageCapabilities) DeepCopy

func (in *StorageCapabilities) DeepCopy() *StorageCapabilities

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageCapabilities.

func (*StorageCapabilities) DeepCopyInto

func (in *StorageCapabilities) DeepCopyInto(out *StorageCapabilities)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*StorageCapabilities) HasClass

func (c *StorageCapabilities) HasClass(class string) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL