v1alpha1

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package v1alpha1 is a generated protocol buffer package.

It is generated from these files:

k8s.io/api/admissionregistration/v1alpha1/generated.proto

It has these top-level messages:

Initializer
InitializerConfiguration
InitializerConfigurationList
Rule

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthGenerated = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenerated   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Initializer

type Initializer struct {
	// Name is the identifier of the initializer. It will be added to the
	// object that needs to be initialized.
	// Name should be fully qualified, e.g., alwayspullimages.kubernetes.io, where
	// "alwayspullimages" is the name of the webhook, and kubernetes.io is the name
	// of the organization.
	// Required
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Rules describes what resources/subresources the initializer cares about.
	// The initializer cares about an operation if it matches _any_ Rule.
	// Rule.Resources must not include subresources.
	Rules            []*Rule `protobuf:"bytes,2,rep,name=rules" json:"rules,omitempty"`
	XXX_unrecognized []byte  `json:"-"`
}

Initializer describes the name and the failure policy of an initializer, and what resources it applies to.

func (*Initializer) Descriptor

func (*Initializer) Descriptor() ([]byte, []int)

func (*Initializer) GetName

func (m *Initializer) GetName() string

func (*Initializer) GetRules

func (m *Initializer) GetRules() []*Rule

func (*Initializer) Marshal

func (m *Initializer) Marshal() (dAtA []byte, err error)

func (*Initializer) MarshalTo

func (m *Initializer) MarshalTo(dAtA []byte) (int, error)

func (*Initializer) ProtoMessage

func (*Initializer) ProtoMessage()

func (*Initializer) Reset

func (m *Initializer) Reset()

func (*Initializer) Size

func (m *Initializer) Size() (n int)

func (*Initializer) String

func (m *Initializer) String() string

func (*Initializer) Unmarshal

func (m *Initializer) Unmarshal(dAtA []byte) error

type InitializerConfiguration

type InitializerConfiguration struct {
	// Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#metadata.
	// +optional
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Initializers is a list of resources and their default initializers
	// Order-sensitive.
	// When merging multiple InitializerConfigurations, we sort the initializers
	// from different InitializerConfigurations by the name of the
	// InitializerConfigurations; the order of the initializers from the same
	// InitializerConfiguration is preserved.
	// +patchMergeKey=name
	// +patchStrategy=merge
	// +optional
	Initializers     []*Initializer `protobuf:"bytes,2,rep,name=initializers" json:"initializers,omitempty"`
	XXX_unrecognized []byte         `json:"-"`
}

InitializerConfiguration describes the configuration of initializers.

func (*InitializerConfiguration) Descriptor

func (*InitializerConfiguration) Descriptor() ([]byte, []int)

func (*InitializerConfiguration) GetInitializers

func (m *InitializerConfiguration) GetInitializers() []*Initializer

func (*InitializerConfiguration) GetMetadata

func (*InitializerConfiguration) Marshal

func (m *InitializerConfiguration) Marshal() (dAtA []byte, err error)

func (*InitializerConfiguration) MarshalTo

func (m *InitializerConfiguration) MarshalTo(dAtA []byte) (int, error)

func (*InitializerConfiguration) ProtoMessage

func (*InitializerConfiguration) ProtoMessage()

func (*InitializerConfiguration) Reset

func (m *InitializerConfiguration) Reset()

func (*InitializerConfiguration) Size

func (m *InitializerConfiguration) Size() (n int)

func (*InitializerConfiguration) String

func (m *InitializerConfiguration) String() string

func (*InitializerConfiguration) Unmarshal

func (m *InitializerConfiguration) Unmarshal(dAtA []byte) error

type InitializerConfigurationList

type InitializerConfigurationList struct {
	// Standard list metadata.
	// More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds
	// +optional
	Metadata *k8s_io_apimachinery_pkg_apis_meta_v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// List of InitializerConfiguration.
	Items            []*InitializerConfiguration `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
	XXX_unrecognized []byte                      `json:"-"`
}

InitializerConfigurationList is a list of InitializerConfiguration.

func (*InitializerConfigurationList) Descriptor

func (*InitializerConfigurationList) Descriptor() ([]byte, []int)

func (*InitializerConfigurationList) GetItems

func (*InitializerConfigurationList) GetMetadata

func (*InitializerConfigurationList) Marshal

func (m *InitializerConfigurationList) Marshal() (dAtA []byte, err error)

func (*InitializerConfigurationList) MarshalTo

func (m *InitializerConfigurationList) MarshalTo(dAtA []byte) (int, error)

func (*InitializerConfigurationList) ProtoMessage

func (*InitializerConfigurationList) ProtoMessage()

func (*InitializerConfigurationList) Reset

func (m *InitializerConfigurationList) Reset()

func (*InitializerConfigurationList) Size

func (m *InitializerConfigurationList) Size() (n int)

func (*InitializerConfigurationList) String

func (*InitializerConfigurationList) Unmarshal

func (m *InitializerConfigurationList) Unmarshal(dAtA []byte) error

type Rule

type Rule struct {
	// APIGroups is the API groups the resources belong to. '*' is all groups.
	// If '*' is present, the length of the slice must be one.
	// Required.
	ApiGroups []string `protobuf:"bytes,1,rep,name=apiGroups" json:"apiGroups,omitempty"`
	// APIVersions is the API versions the resources belong to. '*' is all versions.
	// If '*' is present, the length of the slice must be one.
	// Required.
	ApiVersions []string `protobuf:"bytes,2,rep,name=apiVersions" json:"apiVersions,omitempty"`
	// Resources is a list of resources this rule applies to.
	//
	// For example:
	// 'pods' means pods.
	// 'pods/log' means the log subresource of pods.
	// '*' means all resources, but not subresources.
	// 'pods/*' means all subresources of pods.
	// '*/scale' means all scale subresources.
	// '*/*' means all resources and their subresources.
	//
	// If wildcard is present, the validation rule will ensure resources do not
	// overlap with each other.
	//
	// Depending on the enclosing object, subresources might not be allowed.
	// Required.
	Resources        []string `protobuf:"bytes,3,rep,name=resources" json:"resources,omitempty"`
	XXX_unrecognized []byte   `json:"-"`
}

Rule is a tuple of APIGroups, APIVersion, and Resources.It is recommended to make sure that all the tuple expansions are valid.

func (*Rule) Descriptor

func (*Rule) Descriptor() ([]byte, []int)

func (*Rule) GetApiGroups

func (m *Rule) GetApiGroups() []string

func (*Rule) GetApiVersions

func (m *Rule) GetApiVersions() []string

func (*Rule) GetResources

func (m *Rule) GetResources() []string

func (*Rule) Marshal

func (m *Rule) Marshal() (dAtA []byte, err error)

func (*Rule) MarshalTo

func (m *Rule) MarshalTo(dAtA []byte) (int, error)

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) Size

func (m *Rule) Size() (n int)

func (*Rule) String

func (m *Rule) String() string

func (*Rule) Unmarshal

func (m *Rule) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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