v1

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package v1 is the v1 version of the API. +groupName=k8s.cni.cncf.io

Index

Constants

View Source
const (
	CRDPlural   string = "network-attachment-definitions"
	CRDGroup    string = "k8s.cni.cncf.io"
	CRDVersion  string = "v1"
	FullCRDName string = CRDPlural + "." + CRDGroup
)

Variables

View Source
var (
	// localSchemeBuilder and AddToScheme will stay in k8s.io/kubernetes.
	SchemeBuilder runtime.SchemeBuilder

	AddToScheme = localSchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: kcom.GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects

Functions

func CreateCRD

func CreateCRD(clientset apiextcs.Interface) error

Create the CRD resource, ignore error if it already exists

func NewClient

func NewClient(cfg *rest.Config) (*rest.RESTClient, *runtime.Scheme, error)

func Resource

func Resource(resource string) schema.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource

Types

type NetworkAttachmentDefinition

type NetworkAttachmentDefinition struct {
	meta_v1.TypeMeta   `json:",inline"`
	meta_v1.ObjectMeta `json:"metadata"`
	Spec               NetworkSpec `json:"spec"`
	Args               string      `json:"args"`
	Kind               string      `json:"kind"`
}

func (*NetworkAttachmentDefinition) DeepCopy

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

func (*NetworkAttachmentDefinition) DeepCopyInto

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

func (*NetworkAttachmentDefinition) DeepCopyObject

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

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

type NetworkAttachmentDefinitionList added in v0.3.1

type NetworkAttachmentDefinitionList struct {
	meta_v1.TypeMeta `json:",inline"`
	// +optional
	meta_v1.ListMeta `json:"metadata,omitempty"`

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

func (*NetworkAttachmentDefinitionList) DeepCopy added in v0.3.1

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

func (*NetworkAttachmentDefinitionList) DeepCopyInto added in v0.3.1

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

func (*NetworkAttachmentDefinitionList) DeepCopyObject added in v0.3.1

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

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

type NetworkList

type NetworkList struct {
	meta_v1.TypeMeta `json:",inline"`
	meta_v1.ListMeta `json:"metadata"`
	Items            []NetworkAttachmentDefinition `json:"items"`
}

func (*NetworkList) DeepCopy

func (in *NetworkList) DeepCopy() *NetworkList

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

func (*NetworkList) DeepCopyInto

func (in *NetworkList) DeepCopyInto(out *NetworkList)

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

func (*NetworkList) DeepCopyObject

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

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

type NetworkNames

type NetworkNames struct {
	Plural     string   `json:"networks,omitempty"`
	Singular   string   `json:"singular,omitempty"`
	Kind       string   `json:"kind,omitempty"`
	ShortNames []string `json:"shortNames,omitempty"`
}

func (*NetworkNames) DeepCopy

func (in *NetworkNames) DeepCopy() *NetworkNames

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

func (*NetworkNames) DeepCopyInto

func (in *NetworkNames) DeepCopyInto(out *NetworkNames)

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

type NetworkSpec

type NetworkSpec struct {
	Group      string            `json:"group"`
	Version    string            `json:"version"`
	Scope      string            `json:"scope,omitempty"`
	Names      NetworkNames      `json:"names,omitempty"`
	Config     string            `json:"config"`
	Validation NetworkValidation `json:"validation"`
}

func (*NetworkSpec) DeepCopy

func (in *NetworkSpec) DeepCopy() *NetworkSpec

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

func (*NetworkSpec) DeepCopyInto

func (in *NetworkSpec) DeepCopyInto(out *NetworkSpec)

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

type NetworkValidation

type NetworkValidation struct {
	OpenAPIV3Schema NetworkValidationSchema `json:"openAPIV3Schema"`
}

func (*NetworkValidation) DeepCopy

func (in *NetworkValidation) DeepCopy() *NetworkValidation

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

func (*NetworkValidation) DeepCopyInto

func (in *NetworkValidation) DeepCopyInto(out *NetworkValidation)

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

type NetworkValidationConfig

type NetworkValidationConfig struct {
	Type string `json:"type"`
}

func (*NetworkValidationConfig) DeepCopy

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

func (*NetworkValidationConfig) DeepCopyInto

func (in *NetworkValidationConfig) DeepCopyInto(out *NetworkValidationConfig)

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

type NetworkValidationProperties

type NetworkValidationProperties struct {
	Spec NetworkValidationSpec `json:"spec"`
}

func (*NetworkValidationProperties) DeepCopy

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

func (*NetworkValidationProperties) DeepCopyInto

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

type NetworkValidationSchema

type NetworkValidationSchema struct {
	Properties NetworkValidationProperties `json:"properties"`
}

func (*NetworkValidationSchema) DeepCopy

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

func (*NetworkValidationSchema) DeepCopyInto

func (in *NetworkValidationSchema) DeepCopyInto(out *NetworkValidationSchema)

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

type NetworkValidationSpec

type NetworkValidationSpec struct {
	Properties NetworkValidationSpecProperties `json:"properties"`
}

func (*NetworkValidationSpec) DeepCopy

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

func (*NetworkValidationSpec) DeepCopyInto

func (in *NetworkValidationSpec) DeepCopyInto(out *NetworkValidationSpec)

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

type NetworkValidationSpecProperties

type NetworkValidationSpecProperties struct {
	Config NetworkValidationConfig `json:"config"`
}

func (*NetworkValidationSpecProperties) DeepCopy

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

func (*NetworkValidationSpecProperties) DeepCopyInto

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