v1

package
Version: v0.0.0-...-7d7ad2d Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: kanary.GroupName, Version: "v1"}

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 DestinationStatus

type DestinationStatus struct {
	ProxyName   string `json:"proxyName"`
	ServiceName string `json:"serviceName"`
	ConfigName  string `json:"configName"`
}

//DestinationStatus for kanary

func (*DestinationStatus) DeepCopy

func (in *DestinationStatus) DeepCopy() *DestinationStatus

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

func (*DestinationStatus) DeepCopyInto

func (in *DestinationStatus) DeepCopyInto(out *DestinationStatus)

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

type Kanary

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

	Spec   KanarySpec   `json:"spec"`
	Status KanaryStatus `json:"status"`
}

Kanary describes a Kanary deployment.

func (*Kanary) DeepCopy

func (in *Kanary) DeepCopy() *Kanary

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

func (*Kanary) DeepCopyInto

func (in *Kanary) DeepCopyInto(out *Kanary)

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

func (*Kanary) DeepCopyObject

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

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

func (*Kanary) HAProxyCreationNeeded

func (ky *Kanary) HAProxyCreationNeeded() bool

Check current status to determined if haproxy deployment need to be create

type KanaryEndpointList

type KanaryEndpointList struct {
	ServiceName string
	Weight      int
	Ips         []string
}

func (*KanaryEndpointList) DeepCopy

func (in *KanaryEndpointList) DeepCopy() *KanaryEndpointList

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

func (*KanaryEndpointList) DeepCopyInto

func (in *KanaryEndpointList) DeepCopyInto(out *KanaryEndpointList)

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

type KanaryList

type KanaryList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata"`

	Items []Kanary `json:"items"`
}

KanaryList is a list of Kanary resources

func (*KanaryList) DeepCopy

func (in *KanaryList) DeepCopy() *KanaryList

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

func (*KanaryList) DeepCopyInto

func (in *KanaryList) DeepCopyInto(out *KanaryList)

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

func (*KanaryList) DeepCopyObject

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

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

type KanaryRoute

type KanaryRoute struct {
	Backend KanaryService `json:"backend"`
	Weight  int           `json:"weight"`
}

KanaryRoute route

func (*KanaryRoute) DeepCopy

func (in *KanaryRoute) DeepCopy() *KanaryRoute

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

func (*KanaryRoute) DeepCopyInto

func (in *KanaryRoute) DeepCopyInto(out *KanaryRoute)

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

type KanaryService

type KanaryService struct {
	ServiceName string             `json:"servicename"`
	ServicePort intstr.IntOrString `json:"serviceport"`
}

KanaryService basic information to build a service

func (*KanaryService) DeepCopy

func (in *KanaryService) DeepCopy() *KanaryService

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

func (*KanaryService) DeepCopyInto

func (in *KanaryService) DeepCopyInto(out *KanaryService)

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

type KanarySpec

type KanarySpec struct {
	Destination string        `json:"destination"`
	Routes      []KanaryRoute `json:"routes"`
}

KanarySpec is the spec for a Kanary resource

func (*KanarySpec) DeepCopy

func (in *KanarySpec) DeepCopy() *KanarySpec

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

func (*KanarySpec) DeepCopyInto

func (in *KanarySpec) DeepCopyInto(out *KanarySpec)

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

type KanaryStatus

type KanaryStatus struct {
	DestinationStatus DestinationStatus    `json:"destinationStatus"`
	EndpointStatus    []KanaryEndpointList `json:"endpointStatuses"`
}

KanaryStatus for kanary

func (*KanaryStatus) DeepCopy

func (in *KanaryStatus) DeepCopy() *KanaryStatus

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

func (*KanaryStatus) DeepCopyInto

func (in *KanaryStatus) DeepCopyInto(out *KanaryStatus)

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
t or T : Toggle theme light dark auto
y or Y : Canonical URL