v1alpha1

package
v0.0.0-...-5e29bb2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GroupVersion = schema.GroupVersion{Group: "gpu-ninja.com", Version: "v1alpha1"}
)

Functions

func AddToScheme

func AddToScheme(scheme *runtime.Scheme) error

Types

type AggregationConfig

type AggregationConfig struct {
	// BufferSize is the maximum number of agent metrics to buffer
	// before sending them to the cloud.
	BufferSize *int `json:"bufferSize,omitempty"`
	// MaxBlockSize is the maximum number of agent metrics to send to
	// the cloud in a single request.
	MaxBlockSize *int `json:"maxBlockSize,omitempty"`
}

+k8s:deepcopy-gen=true

func (*AggregationConfig) DeepCopy

func (in *AggregationConfig) DeepCopy() *AggregationConfig

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

func (*AggregationConfig) DeepCopyInto

func (in *AggregationConfig) DeepCopyInto(out *AggregationConfig)

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

type CloudConfig

type CloudConfig struct {
	// Token is a bearer token to use when communicating with the GPU Ninja Cloud API.
	Token string `json:"token"`
	// Address is the address of the GPU Ninja API Server.
	Address string `json:"address,omitempty"`
	// RequestTimeout is the maximum amount of time to wait for a response.
	RequestTimeout *metav1.Duration `json:"requestTimeout,omitempty"`
}

+k8s:deepcopy-gen=true

func (*CloudConfig) DeepCopy

func (in *CloudConfig) DeepCopy() *CloudConfig

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

func (*CloudConfig) DeepCopyInto

func (in *CloudConfig) DeepCopyInto(out *CloudConfig)

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

type DaemonConfig

type DaemonConfig struct {
	metav1.TypeMeta `json:",inline"`
	// Metadata is the standard Kubernetes object metadata.
	Metadata *metav1.ObjectMeta `json:"metadata,omitempty"`
	// Cloud configures how metrics are sent to the cloud.
	Cloud *CloudConfig `json:"cloud,omitempty"`
	// Aggregation configures how metrics are aggregated before being
	// sent to the cloud.
	Aggregation *AggregationConfig `json:"aggregation,omitempty"`
}

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

func (*DaemonConfig) DeepCopy

func (in *DaemonConfig) DeepCopy() *DaemonConfig

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

func (*DaemonConfig) DeepCopyInto

func (in *DaemonConfig) DeepCopyInto(out *DaemonConfig)

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

func (*DaemonConfig) DeepCopyObject

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

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

Jump to

Keyboard shortcuts

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