k8s_io_api_imagepolicy_v1alpha1

package
v0.0.0-...-940152b Latest Latest
Warning

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

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

Documentation

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 ImageReview

type ImageReview struct {
	// +optional
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec holds information about the pod being evaluated
	Spec *ImageReviewSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
	// Status is filled in by the backend and indicates whether the pod should be allowed.
	// +optional
	Status *ImageReviewStatus `protobuf:"bytes,3,opt,name=status" json:"status,omitempty"`
}

ImageReview checks if the set of images in a pod are allowed.

func (*ImageReview) Descriptor

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

func (*ImageReview) Equal

func (this *ImageReview) Equal(that interface{}) bool

func (*ImageReview) GetMetadata

func (m *ImageReview) GetMetadata() *v1.ObjectMeta

func (*ImageReview) GetSpec

func (m *ImageReview) GetSpec() *ImageReviewSpec

func (*ImageReview) GetStatus

func (m *ImageReview) GetStatus() *ImageReviewStatus

func (*ImageReview) GoString

func (this *ImageReview) GoString() string

func (*ImageReview) Marshal

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

func (*ImageReview) MarshalTo

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

func (*ImageReview) MarshalToSizedBuffer

func (m *ImageReview) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ImageReview) ProtoMessage

func (*ImageReview) ProtoMessage()

func (*ImageReview) Reset

func (m *ImageReview) Reset()

func (*ImageReview) Size

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

func (*ImageReview) String

func (this *ImageReview) String() string

func (*ImageReview) Unmarshal

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

func (*ImageReview) XXX_DiscardUnknown

func (m *ImageReview) XXX_DiscardUnknown()

func (*ImageReview) XXX_Marshal

func (m *ImageReview) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageReview) XXX_Merge

func (m *ImageReview) XXX_Merge(src proto.Message)

func (*ImageReview) XXX_Size

func (m *ImageReview) XXX_Size() int

func (*ImageReview) XXX_Unmarshal

func (m *ImageReview) XXX_Unmarshal(b []byte) error

type ImageReviewContainerSpec

type ImageReviewContainerSpec struct {
	// This can be in the form image:tag or image@SHA:012345679abcdef.
	// +optional
	Image string `protobuf:"bytes,1,opt,name=image" json:"image"`
}

ImageReviewContainerSpec is a description of a container within the pod creation request.

func (*ImageReviewContainerSpec) Descriptor

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

func (*ImageReviewContainerSpec) Equal

func (this *ImageReviewContainerSpec) Equal(that interface{}) bool

func (*ImageReviewContainerSpec) GetImage

func (m *ImageReviewContainerSpec) GetImage() string

func (*ImageReviewContainerSpec) GoString

func (this *ImageReviewContainerSpec) GoString() string

func (*ImageReviewContainerSpec) Marshal

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

func (*ImageReviewContainerSpec) MarshalTo

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

func (*ImageReviewContainerSpec) MarshalToSizedBuffer

func (m *ImageReviewContainerSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ImageReviewContainerSpec) ProtoMessage

func (*ImageReviewContainerSpec) ProtoMessage()

func (*ImageReviewContainerSpec) Reset

func (m *ImageReviewContainerSpec) Reset()

func (*ImageReviewContainerSpec) Size

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

func (*ImageReviewContainerSpec) String

func (this *ImageReviewContainerSpec) String() string

func (*ImageReviewContainerSpec) Unmarshal

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

func (*ImageReviewContainerSpec) XXX_DiscardUnknown

func (m *ImageReviewContainerSpec) XXX_DiscardUnknown()

func (*ImageReviewContainerSpec) XXX_Marshal

func (m *ImageReviewContainerSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageReviewContainerSpec) XXX_Merge

func (m *ImageReviewContainerSpec) XXX_Merge(src proto.Message)

func (*ImageReviewContainerSpec) XXX_Size

func (m *ImageReviewContainerSpec) XXX_Size() int

func (*ImageReviewContainerSpec) XXX_Unmarshal

func (m *ImageReviewContainerSpec) XXX_Unmarshal(b []byte) error

type ImageReviewSpec

type ImageReviewSpec struct {
	// Containers is a list of a subset of the information in each container of the Pod being created.
	// +optional
	Containers []*ImageReviewContainerSpec `protobuf:"bytes,1,rep,name=containers" json:"containers,omitempty"`
	// Annotations is a list of key-value pairs extracted from the Pod's annotations.
	// It only includes keys which match the pattern `*.image-policy.k8s.io/*`.
	// It is up to each webhook backend to determine how to interpret these annotations, if at all.
	// +optional
	Annotations map[string]string `` /* 142-byte string literal not displayed */
	// Namespace is the namespace the pod is being created in.
	// +optional
	Namespace string `protobuf:"bytes,3,opt,name=namespace" json:"namespace"`
}

ImageReviewSpec is a description of the pod creation request.

func (*ImageReviewSpec) Descriptor

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

func (*ImageReviewSpec) Equal

func (this *ImageReviewSpec) Equal(that interface{}) bool

func (*ImageReviewSpec) GetAnnotations

func (m *ImageReviewSpec) GetAnnotations() map[string]string

func (*ImageReviewSpec) GetContainers

func (m *ImageReviewSpec) GetContainers() []*ImageReviewContainerSpec

func (*ImageReviewSpec) GetNamespace

func (m *ImageReviewSpec) GetNamespace() string

func (*ImageReviewSpec) GoString

func (this *ImageReviewSpec) GoString() string

func (*ImageReviewSpec) Marshal

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

func (*ImageReviewSpec) MarshalTo

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

func (*ImageReviewSpec) MarshalToSizedBuffer

func (m *ImageReviewSpec) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ImageReviewSpec) ProtoMessage

func (*ImageReviewSpec) ProtoMessage()

func (*ImageReviewSpec) Reset

func (m *ImageReviewSpec) Reset()

func (*ImageReviewSpec) Size

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

func (*ImageReviewSpec) String

func (this *ImageReviewSpec) String() string

func (*ImageReviewSpec) Unmarshal

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

func (*ImageReviewSpec) XXX_DiscardUnknown

func (m *ImageReviewSpec) XXX_DiscardUnknown()

func (*ImageReviewSpec) XXX_Marshal

func (m *ImageReviewSpec) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageReviewSpec) XXX_Merge

func (m *ImageReviewSpec) XXX_Merge(src proto.Message)

func (*ImageReviewSpec) XXX_Size

func (m *ImageReviewSpec) XXX_Size() int

func (*ImageReviewSpec) XXX_Unmarshal

func (m *ImageReviewSpec) XXX_Unmarshal(b []byte) error

type ImageReviewStatus

type ImageReviewStatus struct {
	// Allowed indicates that all images were allowed to be run.
	Allowed bool `protobuf:"varint,1,opt,name=allowed" json:"allowed"`
	// Reason should be empty unless Allowed is false in which case it
	// may contain a short description of what is wrong.  Kubernetes
	// may truncate excessively long errors when displaying to the user.
	// +optional
	Reason string `protobuf:"bytes,2,opt,name=reason" json:"reason"`
	// AuditAnnotations will be added to the attributes object of the
	// admission controller request using 'AddAnnotation'.  The keys should
	// be prefix-less (i.e., the admission controller will add an
	// appropriate prefix).
	// +optional
	AuditAnnotations map[string]string `` /* 152-byte string literal not displayed */
}

ImageReviewStatus is the result of the review for the pod creation request.

func (*ImageReviewStatus) Descriptor

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

func (*ImageReviewStatus) Equal

func (this *ImageReviewStatus) Equal(that interface{}) bool

func (*ImageReviewStatus) GetAllowed

func (m *ImageReviewStatus) GetAllowed() bool

func (*ImageReviewStatus) GetAuditAnnotations

func (m *ImageReviewStatus) GetAuditAnnotations() map[string]string

func (*ImageReviewStatus) GetReason

func (m *ImageReviewStatus) GetReason() string

func (*ImageReviewStatus) GoString

func (this *ImageReviewStatus) GoString() string

func (*ImageReviewStatus) Marshal

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

func (*ImageReviewStatus) MarshalTo

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

func (*ImageReviewStatus) MarshalToSizedBuffer

func (m *ImageReviewStatus) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ImageReviewStatus) ProtoMessage

func (*ImageReviewStatus) ProtoMessage()

func (*ImageReviewStatus) Reset

func (m *ImageReviewStatus) Reset()

func (*ImageReviewStatus) Size

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

func (*ImageReviewStatus) String

func (this *ImageReviewStatus) String() string

func (*ImageReviewStatus) Unmarshal

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

func (*ImageReviewStatus) XXX_DiscardUnknown

func (m *ImageReviewStatus) XXX_DiscardUnknown()

func (*ImageReviewStatus) XXX_Marshal

func (m *ImageReviewStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ImageReviewStatus) XXX_Merge

func (m *ImageReviewStatus) XXX_Merge(src proto.Message)

func (*ImageReviewStatus) XXX_Size

func (m *ImageReviewStatus) XXX_Size() int

func (*ImageReviewStatus) XXX_Unmarshal

func (m *ImageReviewStatus) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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