v1alpha1

package
v1.17.0-kw2 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditSink

type AuditSink struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the audit configuration spec
	Spec *AuditSinkSpec `json:"spec,omitempty"`
}

AuditSink AuditSink represents a cluster level audit sink

swagger:model AuditSink

func (AuditSink) MarshalEasyJSON

func (v AuditSink) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuditSink) MarshalJSON

func (v AuditSink) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuditSink) UnmarshalEasyJSON

func (v *AuditSink) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuditSink) UnmarshalJSON

func (v *AuditSink) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuditSinkList

type AuditSinkList struct {

	// APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
	APIVersion string `json:"apiVersion,omitempty"`

	// List of audit configurations.
	// Required: true
	Items []*AuditSink `json:"items"`

	// Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
	Kind string `json:"kind,omitempty"`

	// metadata
	Metadata apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

AuditSinkList AuditSinkList is a list of AuditSink items.

swagger:model AuditSinkList

func (AuditSinkList) MarshalEasyJSON

func (v AuditSinkList) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuditSinkList) MarshalJSON

func (v AuditSinkList) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuditSinkList) UnmarshalEasyJSON

func (v *AuditSinkList) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuditSinkList) UnmarshalJSON

func (v *AuditSinkList) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type AuditSinkSpec

type AuditSinkSpec struct {

	// Policy defines the policy for selecting which events should be sent to the webhook required
	// Required: true
	Policy *Policy `json:"policy"`

	// Webhook to send events required
	// Required: true
	Webhook *Webhook `json:"webhook"`
}

AuditSinkSpec AuditSinkSpec holds the spec for the audit sink

swagger:model AuditSinkSpec

func (AuditSinkSpec) MarshalEasyJSON

func (v AuditSinkSpec) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (AuditSinkSpec) MarshalJSON

func (v AuditSinkSpec) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*AuditSinkSpec) UnmarshalEasyJSON

func (v *AuditSinkSpec) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*AuditSinkSpec) UnmarshalJSON

func (v *AuditSinkSpec) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Policy

type Policy struct {

	// The Level that all requests are recorded at. available options: None, Metadata, Request, RequestResponse required
	// Required: true
	Level *string `json:"level"`

	// Stages is a list of stages for which events are created.
	Stages []string `json:"stages"`
}

Policy Policy defines the configuration of how audit events are logged

swagger:model Policy

func (Policy) MarshalEasyJSON

func (v Policy) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Policy) MarshalJSON

func (v Policy) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Policy) UnmarshalEasyJSON

func (v *Policy) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Policy) UnmarshalJSON

func (v *Policy) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type ServiceReference

type ServiceReference struct {

	// `name` is the name of the service. Required
	// Required: true
	Name *string `json:"name"`

	// `namespace` is the namespace of the service. Required
	// Required: true
	Namespace *string `json:"namespace"`

	// `path` is an optional URL path which will be sent in any request to this service.
	Path string `json:"path,omitempty"`

	// 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).
	Port int32 `json:"port,omitempty"`
}

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

swagger:model ServiceReference

func (ServiceReference) MarshalEasyJSON

func (v ServiceReference) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (ServiceReference) MarshalJSON

func (v ServiceReference) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*ServiceReference) UnmarshalEasyJSON

func (v *ServiceReference) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*ServiceReference) UnmarshalJSON

func (v *ServiceReference) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type Webhook

type Webhook struct {

	// ClientConfig holds the connection parameters for the webhook required
	// Required: true
	ClientConfig *WebhookClientConfig `json:"clientConfig"`

	// Throttle holds the options for throttling the webhook
	Throttle *WebhookThrottleConfig `json:"throttle,omitempty"`
}

Webhook Webhook holds the configuration of the webhook

swagger:model Webhook

func (Webhook) MarshalEasyJSON

func (v Webhook) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Webhook) MarshalJSON

func (v Webhook) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Webhook) UnmarshalEasyJSON

func (v *Webhook) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Webhook) UnmarshalJSON

func (v *Webhook) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WebhookClientConfig

type WebhookClientConfig struct {

	// `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.
	// Format: byte
	CaBundle strfmt.Base64 `json:"caBundle,omitempty"`

	// `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`.
	Service *ServiceReference `json:"service,omitempty"`

	// `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.
	URL string `json:"url,omitempty"`
}

WebhookClientConfig WebhookClientConfig contains the information to make a connection with the webhook

swagger:model WebhookClientConfig

func (WebhookClientConfig) MarshalEasyJSON

func (v WebhookClientConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebhookClientConfig) MarshalJSON

func (v WebhookClientConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WebhookClientConfig) UnmarshalEasyJSON

func (v *WebhookClientConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebhookClientConfig) UnmarshalJSON

func (v *WebhookClientConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type WebhookThrottleConfig

type WebhookThrottleConfig struct {

	// ThrottleBurst is the maximum number of events sent at the same moment default 15 QPS
	Burst int64 `json:"burst,omitempty"`

	// ThrottleQPS maximum number of batches per second default 10 QPS
	QPS int64 `json:"qps,omitempty"`
}

WebhookThrottleConfig WebhookThrottleConfig holds the configuration for throttling events

swagger:model WebhookThrottleConfig

func (WebhookThrottleConfig) MarshalEasyJSON

func (v WebhookThrottleConfig) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (WebhookThrottleConfig) MarshalJSON

func (v WebhookThrottleConfig) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*WebhookThrottleConfig) UnmarshalEasyJSON

func (v *WebhookThrottleConfig) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*WebhookThrottleConfig) UnmarshalJSON

func (v *WebhookThrottleConfig) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

Jump to

Keyboard shortcuts

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