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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (AuditSink) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*AuditSink) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*AuditSink) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Policy) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Policy) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Policy) UnmarshalJSON ¶
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 ¶
MarshalEasyJSON supports easyjson.Marshaler interface
func (Webhook) MarshalJSON ¶
MarshalJSON supports json.Marshaler interface
func (*Webhook) UnmarshalEasyJSON ¶
UnmarshalEasyJSON supports easyjson.Unmarshaler interface
func (*Webhook) UnmarshalJSON ¶
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
Source Files ¶
- audit_sink.go
- audit_sink_easyjson.go
- audit_sink_list.go
- audit_sink_list_easyjson.go
- audit_sink_spec.go
- audit_sink_spec_easyjson.go
- policy.go
- policy_easyjson.go
- service_reference.go
- service_reference_easyjson.go
- webhook.go
- webhook_client_config.go
- webhook_client_config_easyjson.go
- webhook_easyjson.go
- webhook_throttle_config.go
- webhook_throttle_config_easyjson.go