k8s_io_api_auditregistration_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 AuditSink

type AuditSink struct {
	// +optional
	Metadata *v1.ObjectMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// Spec defines the audit configuration spec
	Spec *AuditSinkSpec `protobuf:"bytes,2,opt,name=spec" json:"spec,omitempty"`
}

AuditSink represents a cluster level audit sink

func (*AuditSink) Descriptor

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

func (*AuditSink) Equal

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

func (*AuditSink) GetMetadata

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

func (*AuditSink) GetSpec

func (m *AuditSink) GetSpec() *AuditSinkSpec

func (*AuditSink) GoString

func (this *AuditSink) GoString() string

func (*AuditSink) Marshal

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

func (*AuditSink) MarshalTo

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

func (*AuditSink) MarshalToSizedBuffer

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

func (*AuditSink) ProtoMessage

func (*AuditSink) ProtoMessage()

func (*AuditSink) Reset

func (m *AuditSink) Reset()

func (*AuditSink) Size

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

func (*AuditSink) String

func (this *AuditSink) String() string

func (*AuditSink) Unmarshal

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

func (*AuditSink) XXX_DiscardUnknown

func (m *AuditSink) XXX_DiscardUnknown()

func (*AuditSink) XXX_Marshal

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

func (*AuditSink) XXX_Merge

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

func (*AuditSink) XXX_Size

func (m *AuditSink) XXX_Size() int

func (*AuditSink) XXX_Unmarshal

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

type AuditSinkList

type AuditSinkList struct {
	// +optional
	Metadata *v1.ListMeta `protobuf:"bytes,1,opt,name=metadata" json:"metadata,omitempty"`
	// List of audit configurations.
	Items []*AuditSink `protobuf:"bytes,2,rep,name=items" json:"items,omitempty"`
}

AuditSinkList is a list of AuditSink items.

func (*AuditSinkList) Descriptor

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

func (*AuditSinkList) Equal

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

func (*AuditSinkList) GetItems

func (m *AuditSinkList) GetItems() []*AuditSink

func (*AuditSinkList) GetMetadata

func (m *AuditSinkList) GetMetadata() *v1.ListMeta

func (*AuditSinkList) GoString

func (this *AuditSinkList) GoString() string

func (*AuditSinkList) Marshal

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

func (*AuditSinkList) MarshalTo

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

func (*AuditSinkList) MarshalToSizedBuffer

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

func (*AuditSinkList) ProtoMessage

func (*AuditSinkList) ProtoMessage()

func (*AuditSinkList) Reset

func (m *AuditSinkList) Reset()

func (*AuditSinkList) Size

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

func (*AuditSinkList) String

func (this *AuditSinkList) String() string

func (*AuditSinkList) Unmarshal

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

func (*AuditSinkList) XXX_DiscardUnknown

func (m *AuditSinkList) XXX_DiscardUnknown()

func (*AuditSinkList) XXX_Marshal

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

func (*AuditSinkList) XXX_Merge

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

func (*AuditSinkList) XXX_Size

func (m *AuditSinkList) XXX_Size() int

func (*AuditSinkList) XXX_Unmarshal

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

type AuditSinkSpec

type AuditSinkSpec struct {
	// Policy defines the policy for selecting which events should be sent to the webhook
	// required
	Policy *Policy `protobuf:"bytes,1,opt,name=policy" json:"policy,omitempty"`
	// Webhook to send events
	// required
	Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook" json:"webhook,omitempty"`
}

AuditSinkSpec holds the spec for the audit sink

func (*AuditSinkSpec) Descriptor

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

func (*AuditSinkSpec) Equal

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

func (*AuditSinkSpec) GetPolicy

func (m *AuditSinkSpec) GetPolicy() *Policy

func (*AuditSinkSpec) GetWebhook

func (m *AuditSinkSpec) GetWebhook() *Webhook

func (*AuditSinkSpec) GoString

func (this *AuditSinkSpec) GoString() string

func (*AuditSinkSpec) Marshal

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

func (*AuditSinkSpec) MarshalTo

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

func (*AuditSinkSpec) MarshalToSizedBuffer

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

func (*AuditSinkSpec) ProtoMessage

func (*AuditSinkSpec) ProtoMessage()

func (*AuditSinkSpec) Reset

func (m *AuditSinkSpec) Reset()

func (*AuditSinkSpec) Size

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

func (*AuditSinkSpec) String

func (this *AuditSinkSpec) String() string

func (*AuditSinkSpec) Unmarshal

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

func (*AuditSinkSpec) XXX_DiscardUnknown

func (m *AuditSinkSpec) XXX_DiscardUnknown()

func (*AuditSinkSpec) XXX_Marshal

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

func (*AuditSinkSpec) XXX_Merge

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

func (*AuditSinkSpec) XXX_Size

func (m *AuditSinkSpec) XXX_Size() int

func (*AuditSinkSpec) XXX_Unmarshal

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

type Policy

type Policy struct {
	// The Level that all requests are recorded at.
	// available options: None, Metadata, Request, RequestResponse
	// required
	Level string `protobuf:"bytes,1,opt,name=level" json:"level"`
	// Stages is a list of stages for which events are created.
	// +optional
	Stages []string `protobuf:"bytes,2,rep,name=stages" json:"stages,omitempty"`
}

Policy defines the configuration of how audit events are logged

func (*Policy) Descriptor

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

func (*Policy) Equal

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

func (*Policy) GetLevel

func (m *Policy) GetLevel() string

func (*Policy) GetStages

func (m *Policy) GetStages() []string

func (*Policy) GoString

func (this *Policy) GoString() string

func (*Policy) Marshal

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

func (*Policy) MarshalTo

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

func (*Policy) MarshalToSizedBuffer

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

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) Size

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

func (*Policy) String

func (this *Policy) String() string

func (*Policy) Unmarshal

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

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

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

func (*Policy) XXX_Merge

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

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

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

type ServiceReference

type ServiceReference struct {
	// `namespace` is the namespace of the service.
	// Required
	Namespace string `protobuf:"bytes,1,opt,name=namespace" json:"namespace"`
	// `name` is the name of the service.
	// Required
	Name string `protobuf:"bytes,2,opt,name=name" json:"name"`
	// `path` is an optional URL path which will be sent in any request to
	// this service.
	// +optional
	Path string `protobuf:"bytes,3,opt,name=path" json:"path"`
	// If specified, the port on the service that hosting webhook.
	// Default to 443 for backward compatibility.
	// `port` should be a valid port number (1-65535, inclusive).
	// +optional
	Port int32 `protobuf:"varint,4,opt,name=port" json:"port"`
}

ServiceReference holds a reference to Service.legacy.k8s.io

func (*ServiceReference) Descriptor

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

func (*ServiceReference) Equal

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

func (*ServiceReference) GetName

func (m *ServiceReference) GetName() string

func (*ServiceReference) GetNamespace

func (m *ServiceReference) GetNamespace() string

func (*ServiceReference) GetPath

func (m *ServiceReference) GetPath() string

func (*ServiceReference) GetPort

func (m *ServiceReference) GetPort() int32

func (*ServiceReference) GoString

func (this *ServiceReference) GoString() string

func (*ServiceReference) Marshal

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

func (*ServiceReference) MarshalTo

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

func (*ServiceReference) MarshalToSizedBuffer

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

func (*ServiceReference) ProtoMessage

func (*ServiceReference) ProtoMessage()

func (*ServiceReference) Reset

func (m *ServiceReference) Reset()

func (*ServiceReference) Size

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

func (*ServiceReference) String

func (this *ServiceReference) String() string

func (*ServiceReference) Unmarshal

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

func (*ServiceReference) XXX_DiscardUnknown

func (m *ServiceReference) XXX_DiscardUnknown()

func (*ServiceReference) XXX_Marshal

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

func (*ServiceReference) XXX_Merge

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

func (*ServiceReference) XXX_Size

func (m *ServiceReference) XXX_Size() int

func (*ServiceReference) XXX_Unmarshal

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

type Webhook

type Webhook struct {
	// Throttle holds the options for throttling the webhook
	// +optional
	Throttle *WebhookThrottleConfig `protobuf:"bytes,1,opt,name=throttle" json:"throttle,omitempty"`
	// ClientConfig holds the connection parameters for the webhook
	// required
	ClientConfig *WebhookClientConfig `protobuf:"bytes,2,opt,name=clientConfig" json:"clientConfig,omitempty"`
}

Webhook holds the configuration of the webhook

func (*Webhook) Descriptor

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

func (*Webhook) Equal

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

func (*Webhook) GetClientConfig

func (m *Webhook) GetClientConfig() *WebhookClientConfig

func (*Webhook) GetThrottle

func (m *Webhook) GetThrottle() *WebhookThrottleConfig

func (*Webhook) GoString

func (this *Webhook) GoString() string

func (*Webhook) Marshal

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

func (*Webhook) MarshalTo

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

func (*Webhook) MarshalToSizedBuffer

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

func (*Webhook) ProtoMessage

func (*Webhook) ProtoMessage()

func (*Webhook) Reset

func (m *Webhook) Reset()

func (*Webhook) Size

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

func (*Webhook) String

func (this *Webhook) String() string

func (*Webhook) Unmarshal

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

func (*Webhook) XXX_DiscardUnknown

func (m *Webhook) XXX_DiscardUnknown()

func (*Webhook) XXX_Marshal

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

func (*Webhook) XXX_Merge

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

func (*Webhook) XXX_Size

func (m *Webhook) XXX_Size() int

func (*Webhook) XXX_Unmarshal

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

type WebhookClientConfig

type WebhookClientConfig struct {
	// `url` gives the location of the webhook, in standard URL form
	// (`scheme://host:port/path`). Exactly one of `url` or `service`
	// must be specified.
	//
	// The `host` should not refer to a service running in the cluster; use
	// the `service` field instead. The host might be resolved via external
	// DNS in some apiservers (e.g., `kube-apiserver` cannot resolve
	// in-cluster DNS as that would be a layering violation). `host` may
	// also be an IP address.
	//
	// Please note that using `localhost` or `127.0.0.1` as a `host` is
	// risky unless you take great care to run this webhook on all hosts
	// which run an apiserver which might need to make calls to this
	// webhook. Such installs are likely to be non-portable, i.e., not easy
	// to turn up in a new cluster.
	//
	// The scheme must be "https"; the URL must begin with "https://".
	//
	// A path is optional, and if present may be any string permissible in
	// a URL. You may use the path to pass an arbitrary string to the
	// webhook, for example, a cluster identifier.
	//
	// Attempting to use a user or basic auth e.g. "user:password@" is not
	// allowed. Fragments ("#...") and query parameters ("?...") are not
	// allowed, either.
	//
	// +optional
	Url string `protobuf:"bytes,1,opt,name=url" json:"url"`
	// `service` is a reference to the service for this webhook. Either
	// `service` or `url` must be specified.
	//
	// If the webhook is running within the cluster, then you should use `service`.
	//
	// +optional
	Service *ServiceReference `protobuf:"bytes,2,opt,name=service" json:"service,omitempty"`
	// `caBundle` is a PEM encoded CA bundle which will be used to validate the webhook's server certificate.
	// If unspecified, system trust roots on the apiserver are used.
	// +optional
	CaBundle []byte `protobuf:"bytes,3,opt,name=caBundle" json:"caBundle"`
}

WebhookClientConfig contains the information to make a connection with the webhook

func (*WebhookClientConfig) Descriptor

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

func (*WebhookClientConfig) Equal

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

func (*WebhookClientConfig) GetCaBundle

func (m *WebhookClientConfig) GetCaBundle() []byte

func (*WebhookClientConfig) GetService

func (m *WebhookClientConfig) GetService() *ServiceReference

func (*WebhookClientConfig) GetUrl

func (m *WebhookClientConfig) GetUrl() string

func (*WebhookClientConfig) GoString

func (this *WebhookClientConfig) GoString() string

func (*WebhookClientConfig) Marshal

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

func (*WebhookClientConfig) MarshalTo

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

func (*WebhookClientConfig) MarshalToSizedBuffer

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

func (*WebhookClientConfig) ProtoMessage

func (*WebhookClientConfig) ProtoMessage()

func (*WebhookClientConfig) Reset

func (m *WebhookClientConfig) Reset()

func (*WebhookClientConfig) Size

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

func (*WebhookClientConfig) String

func (this *WebhookClientConfig) String() string

func (*WebhookClientConfig) Unmarshal

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

func (*WebhookClientConfig) XXX_DiscardUnknown

func (m *WebhookClientConfig) XXX_DiscardUnknown()

func (*WebhookClientConfig) XXX_Marshal

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

func (*WebhookClientConfig) XXX_Merge

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

func (*WebhookClientConfig) XXX_Size

func (m *WebhookClientConfig) XXX_Size() int

func (*WebhookClientConfig) XXX_Unmarshal

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

type WebhookThrottleConfig

type WebhookThrottleConfig struct {
	// ThrottleQPS maximum number of batches per second
	// default 10 QPS
	// +optional
	Qps int64 `protobuf:"varint,1,opt,name=qps" json:"qps"`
	// ThrottleBurst is the maximum number of events sent at the same moment
	// default 15 QPS
	// +optional
	Burst int64 `protobuf:"varint,2,opt,name=burst" json:"burst"`
}

WebhookThrottleConfig holds the configuration for throttling events

func (*WebhookThrottleConfig) Descriptor

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

func (*WebhookThrottleConfig) Equal

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

func (*WebhookThrottleConfig) GetBurst

func (m *WebhookThrottleConfig) GetBurst() int64

func (*WebhookThrottleConfig) GetQps

func (m *WebhookThrottleConfig) GetQps() int64

func (*WebhookThrottleConfig) GoString

func (this *WebhookThrottleConfig) GoString() string

func (*WebhookThrottleConfig) Marshal

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

func (*WebhookThrottleConfig) MarshalTo

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

func (*WebhookThrottleConfig) MarshalToSizedBuffer

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

func (*WebhookThrottleConfig) ProtoMessage

func (*WebhookThrottleConfig) ProtoMessage()

func (*WebhookThrottleConfig) Reset

func (m *WebhookThrottleConfig) Reset()

func (*WebhookThrottleConfig) Size

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

func (*WebhookThrottleConfig) String

func (this *WebhookThrottleConfig) String() string

func (*WebhookThrottleConfig) Unmarshal

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

func (*WebhookThrottleConfig) XXX_DiscardUnknown

func (m *WebhookThrottleConfig) XXX_DiscardUnknown()

func (*WebhookThrottleConfig) XXX_Marshal

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

func (*WebhookThrottleConfig) XXX_Merge

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

func (*WebhookThrottleConfig) XXX_Size

func (m *WebhookThrottleConfig) XXX_Size() int

func (*WebhookThrottleConfig) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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