v1alpha1

package module
v0.0.0-...-3120ddf Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package v1alpha1 contains API Schema definitions for the security v1alpha1 API group +kubebuilder:object:generate=true +groupName=security.rshbdev.ru

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "security.rshbdev.ru", Version: "v1alpha1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)

Functions

This section is empty.

Types

type Alert

type Alert struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   AlertSpec   `json:"spec,omitempty"`
	Status AlertStatus `json:"status,omitempty"`
}

Alert is the Schema for the alerts API

func (*Alert) DeepCopy

func (in *Alert) DeepCopy() *Alert

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Alert.

func (*Alert) DeepCopyInto

func (in *Alert) DeepCopyInto(out *Alert)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Alert) DeepCopyObject

func (in *Alert) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AlertList

type AlertList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Alert `json:"items"`
}

AlertList contains a list of Alert

func (*AlertList) DeepCopy

func (in *AlertList) DeepCopy() *AlertList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertList.

func (*AlertList) DeepCopyInto

func (in *AlertList) DeepCopyInto(out *AlertList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*AlertList) DeepCopyObject

func (in *AlertList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type AlertSpec

type AlertSpec struct {
	Name string `json:"name"`
	//+kubebuilder:default:monitor
	Type     string           `json:"type"`
	Enabled  bool             `json:"enabled"`
	Schedule MonitorSchedule  `json:"schedule"`
	Inputs   []MonitorInput   `json:"inputs"`
	Triggers []MonitorTrigger `json:"triggers"`
}

AlertSpec defines the desired state of Alert

func (*AlertSpec) DeepCopy

func (in *AlertSpec) DeepCopy() *AlertSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertSpec.

func (*AlertSpec) DeepCopyInto

func (in *AlertSpec) DeepCopyInto(out *AlertSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type AlertStatus

type AlertStatus struct {
	Monitor StatusMonitor `json:"monitor"`
}

AlertStatus defines the observed state of Alert

func (*AlertStatus) DeepCopy

func (in *AlertStatus) DeepCopy() *AlertStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AlertStatus.

func (*AlertStatus) DeepCopyInto

func (in *AlertStatus) DeepCopyInto(out *AlertStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ConditionScript

type ConditionScript struct {
	Source string `json:"source"`
	//+kubebuilder:validation:Enum=painless
	Lang string `json:"lang"`
}

ConditionScript defines language and script to execute

func (*ConditionScript) DeepCopy

func (in *ConditionScript) DeepCopy() *ConditionScript

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConditionScript.

func (*ConditionScript) DeepCopyInto

func (in *ConditionScript) DeepCopyInto(out *ConditionScript)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type IndexPermissions

type IndexPermissions struct {
	IndexPatterns []string `json:"index_patterns"`
	//+optional
	DLS string `json:"dls,omitempty"`
	//+optional
	FLS []string `json:"fls,omitempty"`
	//+optional
	MaskedFields   []string `json:"masked_fields,omitempty"`
	AllowedActions []string `json:"allowed_actions"`
}

IndexPermissions defines permissions to specified indices

func (*IndexPermissions) DeepCopy

func (in *IndexPermissions) DeepCopy() *IndexPermissions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new IndexPermissions.

func (*IndexPermissions) DeepCopyInto

func (in *IndexPermissions) DeepCopyInto(out *IndexPermissions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type InputSearch

type InputSearch struct {
	Indices []string `json:"indices"`
	Query   string   `json:"query"`
}

InputSearch defines search queries and indices

func (*InputSearch) DeepCopy

func (in *InputSearch) DeepCopy() *InputSearch

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new InputSearch.

func (*InputSearch) DeepCopyInto

func (in *InputSearch) DeepCopyInto(out *InputSearch)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitorInput

type MonitorInput struct {
	Search InputSearch `json:"search"`
}

MonitorInput defines search queries

func (*MonitorInput) DeepCopy

func (in *MonitorInput) DeepCopy() *MonitorInput

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorInput.

func (*MonitorInput) DeepCopyInto

func (in *MonitorInput) DeepCopyInto(out *MonitorInput)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitorSchedule

type MonitorSchedule struct {
	Period SchedulePeroid `json:"period"`
}

MonitorSchedule defines schedule period

func (*MonitorSchedule) DeepCopy

func (in *MonitorSchedule) DeepCopy() *MonitorSchedule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorSchedule.

func (*MonitorSchedule) DeepCopyInto

func (in *MonitorSchedule) DeepCopyInto(out *MonitorSchedule)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MonitorTrigger

type MonitorTrigger struct {
	Name      string           `json:"name"`
	Severity  string           `json:"severity"`
	Condition TriggerCondition `json:"condition"`
	Actions   []TriggerAction  `json:"actions"`
}

MonitorTrigger defines triggers and required actions

func (*MonitorTrigger) DeepCopy

func (in *MonitorTrigger) DeepCopy() *MonitorTrigger

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MonitorTrigger.

func (*MonitorTrigger) DeepCopyInto

func (in *MonitorTrigger) DeepCopyInto(out *MonitorTrigger)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Role

type Role struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   RoleSpec   `json:"spec,omitempty"`
	Status RoleStatus `json:"status,omitempty"`
}

Role is the Schema for the roles API

func (*Role) DeepCopy

func (in *Role) DeepCopy() *Role

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Role.

func (*Role) DeepCopyInto

func (in *Role) DeepCopyInto(out *Role)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Role) DeepCopyObject

func (in *Role) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleList

type RoleList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Role `json:"items"`
}

RoleList contains a list of Role

func (*RoleList) DeepCopy

func (in *RoleList) DeepCopy() *RoleList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.

func (*RoleList) DeepCopyInto

func (in *RoleList) DeepCopyInto(out *RoleList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RoleList) DeepCopyObject

func (in *RoleList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type RoleMappings

type RoleMappings struct {
	//+optional
	BackendRoles []string `json:"backend_roles,omitempty"`
	//+optional
	Users []string `json:"users,omitempty"`
}

RoleMappings defines mapping between role and backed role/internal users

func (*RoleMappings) DeepCopy

func (in *RoleMappings) DeepCopy() *RoleMappings

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleMappings.

func (*RoleMappings) DeepCopyInto

func (in *RoleMappings) DeepCopyInto(out *RoleMappings)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RoleSpec

type RoleSpec struct {
	//+optional
	ClusterPermissons []string           `json:"cluster_permissions,omitempty"`
	IndexPermissions  []IndexPermissions `json:"index_permissions"`
	//+optional
	TenantPermissions []TenantPermissions `json:"tenant_permissions,omitempty"`
	RoleMappings      RoleMappings        `json:"roleMappings"`
}

RoleSpec defines the desired state of Role

func (*RoleSpec) DeepCopy

func (in *RoleSpec) DeepCopy() *RoleSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleSpec.

func (*RoleSpec) DeepCopyInto

func (in *RoleSpec) DeepCopyInto(out *RoleSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type RoleStatus

type RoleStatus struct {
	Status string `json:"state"`
	//+optional
	Error string `json:"error,omitempty"`
}

RoleStatus defines the observed state of Role

func (*RoleStatus) DeepCopy

func (in *RoleStatus) DeepCopy() *RoleStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RoleStatus.

func (*RoleStatus) DeepCopyInto

func (in *RoleStatus) DeepCopyInto(out *RoleStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type SchedulePeroid

type SchedulePeroid struct {
	Interval int `json:"interval"`
	//+kubebuilder:validation:Enum=HOURS;MINUTES;DAYS
	Unit string `json:"unit"`
}

SchedulePeroid defines schedule time period

func (*SchedulePeroid) DeepCopy

func (in *SchedulePeroid) DeepCopy() *SchedulePeroid

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulePeroid.

func (*SchedulePeroid) DeepCopyInto

func (in *SchedulePeroid) DeepCopyInto(out *SchedulePeroid)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type StatusMonitor

type StatusMonitor struct {
	Name   string `json:"name"`
	ID     string `json:"id"`
	Status string `json:"state"`
	//+optional
	Error string `json:"error,omitempty"`
}

StatusMonitor defines alert's status

func (*StatusMonitor) DeepCopy

func (in *StatusMonitor) DeepCopy() *StatusMonitor

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusMonitor.

func (*StatusMonitor) DeepCopyInto

func (in *StatusMonitor) DeepCopyInto(out *StatusMonitor)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TenantPermissions

type TenantPermissions struct {
	TenantPatterns []string `json:"tenant_patterns"`
	AllowedActions []string `json:"allowed_actions"`
}

TenantPermissions defines permissions to specified tenants

func (*TenantPermissions) DeepCopy

func (in *TenantPermissions) DeepCopy() *TenantPermissions

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TenantPermissions.

func (*TenantPermissions) DeepCopyInto

func (in *TenantPermissions) DeepCopyInto(out *TenantPermissions)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TextTemplate

type TextTemplate struct {
	Source string `json:"source"`
	//+kubebuilder:validation:Enum=mustache;painless
	Lang string `json:"lang"`
}

TextTemplate defines alert text template

func (*TextTemplate) DeepCopy

func (in *TextTemplate) DeepCopy() *TextTemplate

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TextTemplate.

func (*TextTemplate) DeepCopyInto

func (in *TextTemplate) DeepCopyInto(out *TextTemplate)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerAction

type TriggerAction struct {
	Name string `json:"name"`
	//+optional
	Destination     string       `json:"destination_id"`
	SubjectTemplate TextTemplate `json:"subject_template"`
	MessageTemplate TextTemplate `json:"message_template"`
}

TriggerAction defines alerting destination and templates

func (*TriggerAction) DeepCopy

func (in *TriggerAction) DeepCopy() *TriggerAction

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerAction.

func (*TriggerAction) DeepCopyInto

func (in *TriggerAction) DeepCopyInto(out *TriggerAction)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerCondition

type TriggerCondition struct {
	Script ConditionScript `json:"script"`
}

TriggerCondition defines condition to trigger alert

func (*TriggerCondition) DeepCopy

func (in *TriggerCondition) DeepCopy() *TriggerCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerCondition.

func (*TriggerCondition) DeepCopyInto

func (in *TriggerCondition) DeepCopyInto(out *TriggerCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type TriggerThrottle

type TriggerThrottle struct {
	//+kubebuilder:default:=1
	Value int `json:"value"`
	//+kubebuilder:default:=MINUTES
	//+kubebuilder:validation:Enum=HOURS;MINUTES;DAYS
	Unit string `json:"unit"`
}

TriggerThrottle defines alerting throttle

func (*TriggerThrottle) DeepCopy

func (in *TriggerThrottle) DeepCopy() *TriggerThrottle

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TriggerThrottle.

func (*TriggerThrottle) DeepCopyInto

func (in *TriggerThrottle) DeepCopyInto(out *TriggerThrottle)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type User

type User struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   UserSpec   `json:"spec,omitempty"`
	Status UserStatus `json:"status,omitempty"`
}

User is the Schema for the users API

func (*User) DeepCopy

func (in *User) DeepCopy() *User

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new User.

func (*User) DeepCopyInto

func (in *User) DeepCopyInto(out *User)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*User) DeepCopyObject

func (in *User) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UserList

type UserList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []User `json:"items"`
}

UserList contains a list of User

func (*UserList) DeepCopy

func (in *UserList) DeepCopy() *UserList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserList.

func (*UserList) DeepCopyInto

func (in *UserList) DeepCopyInto(out *UserList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*UserList) DeepCopyObject

func (in *UserList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type UserSpec

type UserSpec struct {
	PasswordHash string `json:"hash"`
}

UserSpec defines the desired state of User

func (*UserSpec) DeepCopy

func (in *UserSpec) DeepCopy() *UserSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserSpec.

func (*UserSpec) DeepCopyInto

func (in *UserSpec) DeepCopyInto(out *UserSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type UserStatus

type UserStatus struct {
	Status string `json:"state"`
	//+optional
	Error string `json:"error,omitempty"`
}

UserStatus defines the observed state of User

func (*UserStatus) DeepCopy

func (in *UserStatus) DeepCopy() *UserStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new UserStatus.

func (*UserStatus) DeepCopyInto

func (in *UserStatus) DeepCopyInto(out *UserStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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