v1alpha1

package
v0.0.0-...-9374869 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package v1alpha1 implements a Kubernetes CRD, and controller for LogicMonitor collectors. +k8s:deepcopy-gen=package +groupName=collectors.logicmonitor.com

Index

Constants

View Source
const GroupName = "logicmonitor.com"

GroupName is the group name used in this package.

Variables

View Source
var (
	// SchemeBuilder is a SchemeBuilder.
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	// AddToScheme is the SchemeBuilder AddToScheme function.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

SchemeGroupVersion is the group version used to register these objects.

Functions

func GetGeneratedDeepCopyFuncs deprecated

func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc

GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.

Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group-qualified GroupResource.

Types

type CollectorSet

type CollectorSet struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata"`
	Spec              CollectorSetSpec   `json:"spec"`
	Status            CollectorSetStatus `json:"status,omitempty"`
}

CollectorSet represents the collectorset in Kubernetes. +genclient +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CollectorSet) DeepCopy

func (in *CollectorSet) DeepCopy() *CollectorSet

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

func (*CollectorSet) DeepCopyInto

func (in *CollectorSet) DeepCopyInto(out *CollectorSet)

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

func (*CollectorSet) DeepCopyObject

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

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

type CollectorSetList

type CollectorSetList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`
	Items           []CollectorSet `json:"items"`
}

CollectorSetList represents a list of collectorsets. +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object

func (*CollectorSetList) DeepCopy

func (in *CollectorSetList) DeepCopy() *CollectorSetList

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

func (*CollectorSetList) DeepCopyInto

func (in *CollectorSetList) DeepCopyInto(out *CollectorSetList)

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

func (*CollectorSetList) DeepCopyObject

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

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

type CollectorSetPolicy

type CollectorSetPolicy struct {
	Orchestrator        string            `json:"orchestrator,omitempty"`
	DistibutionStrategy *distributor.Type `json:"distributionStrategy"`
}

CollectorSetPolicy is the CollectorSet controller's status.

func (*CollectorSetPolicy) DeepCopy

func (in *CollectorSetPolicy) DeepCopy() *CollectorSetPolicy

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

func (*CollectorSetPolicy) DeepCopyInto

func (in *CollectorSetPolicy) DeepCopyInto(out *CollectorSetPolicy)

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

type CollectorSetSpec

type CollectorSetSpec struct {
	Replicas *int32              `json:"replicas"`
	Size     string              `json:"size,omitempty"`
	Policy   *CollectorSetPolicy `json:"policy"`
}

CollectorSetSpec represents the collectorset controller's spec.

func (*CollectorSetSpec) DeepCopy

func (in *CollectorSetSpec) DeepCopy() *CollectorSetSpec

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

func (*CollectorSetSpec) DeepCopyInto

func (in *CollectorSetSpec) DeepCopyInto(out *CollectorSetSpec)

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

type CollectorSetState

type CollectorSetState string

CollectorSetState is the CollectorSet controller's state string.

const (
	// CollectorSetStateCreated is a status string.
	CollectorSetStateCreated CollectorSetState = "Created"
	// CollectorSetStateRegistered is a status string.
	CollectorSetStateRegistered CollectorSetState = "Registered"
	// CollectorSetResourcePlural is the plural for the CRD.
	CollectorSetResourcePlural = "collectorsets"
)

type CollectorSetStatus

type CollectorSetStatus struct {
	State CollectorSetState `json:"state,omitempty"`
	IDs   []int32           `json:"ids,omitempty"`
}

CollectorSetStatus is the CollectorSet controller's status.

func (*CollectorSetStatus) DeepCopy

func (in *CollectorSetStatus) DeepCopy() *CollectorSetStatus

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

func (*CollectorSetStatus) DeepCopyInto

func (in *CollectorSetStatus) DeepCopyInto(out *CollectorSetStatus)

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

Jump to

Keyboard shortcuts

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