v1

package
v0.0.0-...-0eea0ee Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2019 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=gooslo.io

Index

Constants

View Source
const (
	PollPeriod  = 5 * time.Second
	PollTimeout = 30 * time.Second
)

PollPeriod defines how often we poll to check if CRD is there PollTimeout defines after how much time we'll stop waiting to check if CRD was created

View Source
const (
	GroupName                    = "gooslo.io"
	Kind                         = "application"
	GroupVersion                 = "v1"
	SingularName                 = "application"
	PluralName                   = "applications"
	CustomResourceDefinitionName = PluralName + "." + GroupName
)

GroupName contains the api name GroupVersion contains the api version

Variables

View Source
var (
	AddToScheme   = localSchemeBuilder.AddToScheme
	SchemeBuilder runtime.SchemeBuilder
)

localSchemeBuilder will stay in k8s.io/kubernetes. AddToScheme will stay in k8s.io/kubernetes.

View Source
var SchemeGroupVersion = schema.GroupVersion{
	Group:   GroupName,
	Version: GroupVersion,
}

Functions

func CreateCRD

CreateCRD registers a new CRD kind and then periodically polls the API server to check if the CRD was created.

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type Application

type Application struct {
	metav1.TypeMeta   `json:",inline"` // apiVersion, kind
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              ApplicationSpec `json:"spec"`
}

Application is a top-level type. A client is created for it.

func (*Application) DeepCopy

func (in *Application) DeepCopy() *Application

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

func (*Application) DeepCopyInto

func (in *Application) DeepCopyInto(out *Application)

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

func (*Application) DeepCopyObject

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

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

type ApplicationList

type ApplicationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Application `json:"items"`
}

ApplicationList is a top-level list type. The client methods for lists are automatically created. You are not supposed to create a separated client for this one.

func (*ApplicationList) DeepCopy

func (in *ApplicationList) DeepCopy() *ApplicationList

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

func (*ApplicationList) DeepCopyInto

func (in *ApplicationList) DeepCopyInto(out *ApplicationList)

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

func (*ApplicationList) DeepCopyObject

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

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

type ApplicationSpec

type ApplicationSpec struct {
	Name  string `json:"name"`
	Image string `json:"image"`
}

ApplicationSpec defines the CRD spec.

func (*ApplicationSpec) DeepCopy

func (in *ApplicationSpec) DeepCopy() *ApplicationSpec

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

func (*ApplicationSpec) DeepCopyInto

func (in *ApplicationSpec) DeepCopyInto(out *ApplicationSpec)

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