Documentation

Overview

    Package v1alpha1 is the v1alpha1 version of the API.

    Index

    Constants

    This section is empty.

    Variables

    View Source
    var (
    	// SchemeBuilder initializes a scheme builder
    	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
    	// AddToScheme is a global function that registers this API group & version to a scheme
    	AddToScheme = SchemeBuilder.AddToScheme
    )
    View Source
    var SchemeGroupVersion = schema.GroupVersion{Group: samplecontroller.GroupName, Version: "v1alpha1"}

      SchemeGroupVersion is group version used to register these objects

      Functions

      func Kind

      func Kind(kind string) schema.GroupKind

        Kind takes an unqualified kind and returns back a Group qualified GroupKind

        func Resource

        func Resource(resource string) schema.GroupResource

          Resource takes an unqualified resource and returns a Group qualified GroupResource

          Types

          type VM

          type VM struct {
          	metav1.TypeMeta   `json:",inline"`
          	metav1.ObjectMeta `json:"metadata,omitempty"`
          
          	Spec   VMSpec   `json:"spec"`
          	Status VMStatus `json:"status"`
          }

            VM is a specification for a VM resource

            func (*VM) DeepCopy

            func (in *VM) DeepCopy() *VM

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

              func (*VM) DeepCopyInto

              func (in *VM) DeepCopyInto(out *VM)

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

                func (*VM) DeepCopyObject

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

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

                  type VMList

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

                    VMList is a list of VM resources

                    func (*VMList) DeepCopy

                    func (in *VMList) DeepCopy() *VMList

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

                      func (*VMList) DeepCopyInto

                      func (in *VMList) DeepCopyInto(out *VMList)

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

                        func (*VMList) DeepCopyObject

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

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

                          type VMSpec

                          type VMSpec struct {
                          	VMName   string `json:"vmname"`
                          	Replicas *int32 `json:"replicas"`
                          }

                            VMSpec is the spec for a VM resource

                            func (*VMSpec) DeepCopy

                            func (in *VMSpec) DeepCopy() *VMSpec

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

                              func (*VMSpec) DeepCopyInto

                              func (in *VMSpec) DeepCopyInto(out *VMSpec)

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

                                type VMStatus

                                type VMStatus struct {
                                	CPUUtilization int32  `json:"cpuUtilization"`
                                	VMID           string `json:"vmId"`
                                }

                                  VMStatus is the status for a VM resource

                                  func (*VMStatus) DeepCopy

                                  func (in *VMStatus) DeepCopy() *VMStatus

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

                                    func (*VMStatus) DeepCopyInto

                                    func (in *VMStatus) DeepCopyInto(out *VMStatus)

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