Documentation ¶
Overview ¶
Package v1 contains API Schema definitions for the canaries v1 API group +kubebuilder:object:generate=true +groupName=canaries.flanksource.com
Index ¶
- Constants
- Variables
- func GetEnvVarRefValue(kc kubernetes.Interface, ns string, from *VarSource, obj runtime.Object) (string, error)
- type AWSConnection
- type Authentication
- type AwsConfig
- type AwsConfigCheck
- type Bucket
- type Canary
- func (in *Canary) DeepCopy() *Canary
- func (in *Canary) DeepCopyInto(out *Canary)
- func (in *Canary) DeepCopyObject() runtime.Object
- func (c Canary) GetAllLabels(extra map[string]string) map[string]string
- func (c Canary) GetDescription(check external.Check) string
- func (c Canary) GetKey(check external.Check) string
- func (c *Canary) GetRunnerName() string
- func (c Canary) ID() string
- func (c *Canary) SetRunnerName(name string)
- func (c Canary) String() string
- type CanaryList
- type CanarySpec
- type CanaryStatus
- type CanaryStatusCondition
- type Check
- type CheckStatus
- type CloudWatch
- type CloudWatchCheck
- type CloudWatchFilter
- type Condition
- type ConditionStatus
- type Connectable
- type Connection
- type ContainerdPull
- type ContainerdPullCheck
- type ContainerdPush
- type ContainerdPushCheck
- type DNS
- type DNSCheck
- type Description
- type Display
- type DisplayTemplate
- type DockerPull
- type DockerPullCheck
- type DockerPush
- type DockerPushCheck
- type Duration
- type EC2
- type EC2Check
- type Exec
- type ExecCheck
- type Folder
- type FolderCheck
- type FolderFilter
- type FolderFilterContext
- type FolderTest
- type GCPConnection
- type Git
- type GitHubCheck
- type HTTP
- type HTTPCheck
- type Helm
- type HelmCheck
- type ICMP
- type ICMPCheck
- type JSONCheck
- type Jmeter
- type JmeterCheck
- type Junit
- type JunitCheck
- type Kubernetes
- type KubernetesCheck
- type LDAP
- type LDAPCheck
- type Mongo
- type MongoDBCheck
- type MsSQL
- type MssqlCheck
- type Namespace
- type NamespaceCheck
- type Pod
- type PodCheck
- type Postgres
- type PostgresCheck
- type Prometheus
- type PrometheusCheck
- type Redis
- type RedisCheck
- type ResourceSelector
- type Restic
- type ResticCheck
- type ResultMode
- type S3
- type S3Check
- type SMBConnection
- type SQLCheck
- type Size
- type SrvReply
- type TCP
- type TCPCheck
- type Templatable
- type Template
- type Test
- type TestFunction
- type VarSource
Constants ¶
const (
JunitResultMode = "junit"
)
Variables ¶
var ( // GroupVersion is group version used to register these objects GroupVersion = schema.GroupVersion{Group: "canaries.flanksource.com", Version: "v1"} // 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 )
var AllChecks = []external.Check{ HTTPCheck{}, TCPCheck{}, ICMPCheck{}, S3Check{}, DockerPullCheck{}, DockerPushCheck{}, ContainerdPullCheck{}, ContainerdPushCheck{}, PostgresCheck{}, MssqlCheck{}, RedisCheck{}, PodCheck{}, LDAPCheck{}, ResticCheck{}, NamespaceCheck{}, DNSCheck{}, HelmCheck{}, JmeterCheck{}, JunitCheck{}, EC2Check{}, PrometheusCheck{}, MongoDBCheck{}, CloudWatchCheck{}, GitHubCheck{}, Kubernetes{}, FolderCheck{}, ExecCheck{}, AwsConfigCheck{}, }
Functions ¶
func GetEnvVarRefValue ¶
func GetEnvVarRefValue(kc kubernetes.Interface, ns string, from *VarSource, obj runtime.Object) (string, error)
GetEnvVarRefValue returns the value referenced by the supplied EnvVarSource given the other supplied information.
Types ¶
type AWSConnection ¶ added in v0.38.4
type AWSConnection struct { AccessKey kommons.EnvVar `yaml:"accessKey" json:"accessKey"` SecretKey kommons.EnvVar `yaml:"secretKey" json:"secretKey"` Region string `yaml:"region,omitempty" json:"region"` Endpoint string `yaml:"endpoint,omitempty" json:"endpoint,omitempty"` // Skip TLS verify when connecting to aws SkipTLSVerify bool `yaml:"skipTLSVerify,omitempty" json:"skipTLSVerify,omitempty"` // glob path to restrict matches to a subset ObjectPath string `yaml:"objectPath,omitempty" json:"objectPath,omitempty"` // Use path style path: http://s3.amazonaws.com/BUCKET/KEY instead of http://BUCKET.s3.amazonaws.com/KEY UsePathStyle bool `yaml:"usePathStyle,omitempty" json:"usePathStyle,omitempty"` }
func (*AWSConnection) DeepCopy ¶ added in v0.38.4
func (in *AWSConnection) DeepCopy() *AWSConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AWSConnection.
func (*AWSConnection) DeepCopyInto ¶ added in v0.38.4
func (in *AWSConnection) DeepCopyInto(out *AWSConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Authentication ¶ added in v0.17.0
type Authentication struct { Username kommons.EnvVar `yaml:"username" json:"username"` Password kommons.EnvVar `yaml:"password" json:"password"` }
func (*Authentication) DeepCopy ¶ added in v0.17.0
func (in *Authentication) DeepCopy() *Authentication
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Authentication.
func (*Authentication) DeepCopyInto ¶ added in v0.17.0
func (in *Authentication) DeepCopyInto(out *Authentication)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Authentication) GetDomain ¶ added in v0.38.4
func (auth Authentication) GetDomain() string
func (Authentication) GetPassword ¶ added in v0.38.4
func (auth Authentication) GetPassword() string
func (Authentication) GetUsername ¶ added in v0.38.4
func (auth Authentication) GetUsername() string
func (Authentication) IsEmpty ¶ added in v0.38.25
func (auth Authentication) IsEmpty() bool
type AwsConfig ¶ added in v0.38.56
type AwsConfig struct {
AwsConfigCheck `yaml:",inline" json:",inline"`
}
AwsConfig check runs the given query against the AWS resources. [include:aws/ec2_pass.yaml]
func (*AwsConfig) DeepCopy ¶ added in v0.38.56
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsConfig.
func (*AwsConfig) DeepCopyInto ¶ added in v0.38.56
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AwsConfigCheck ¶ added in v0.38.56
type AwsConfigCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` Query string `yaml:"query" json:"query"` *AWSConnection `yaml:"awsConnection,omitempty" json:"awsConnection,omitempty"` AggregatorName *string `yaml:"aggregatorName,omitempty" json:"aggregatorName,omitempty"` }
func (*AwsConfigCheck) DeepCopy ¶ added in v0.38.56
func (in *AwsConfigCheck) DeepCopy() *AwsConfigCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AwsConfigCheck.
func (*AwsConfigCheck) DeepCopyInto ¶ added in v0.38.56
func (in *AwsConfigCheck) DeepCopyInto(out *AwsConfigCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (AwsConfigCheck) GetEndpoint ¶ added in v0.38.56
func (c AwsConfigCheck) GetEndpoint() string
func (AwsConfigCheck) GetType ¶ added in v0.38.56
func (c AwsConfigCheck) GetType() string
type Bucket ¶
type Bucket struct { Name string `yaml:"name" json:"name,omitempty"` Region string `yaml:"region" json:"region,omitempty"` Endpoint string `yaml:"endpoint" json:"endpoint,omitempty"` }
func (*Bucket) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Bucket.
func (*Bucket) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Canary ¶
type Canary struct { metav1.TypeMeta `json:",inline"` metav1.ObjectMeta `json:"metadata,omitempty"` Spec CanarySpec `json:"spec,omitempty"` Status CanaryStatus `json:"status,omitempty"` }
Canary is the Schema for the canaries API +kubebuilder:printcolumn:name="Interval",type=string,JSONPath=`.spec.interval` +kubebuilder:printcolumn:name="Status",type=string,JSONPath=`.status.status` +kubebuilder:printcolumn:name="Last Check",type=date,JSONPath=`.status.lastCheck` +kubebuilder:printcolumn:name="Uptime 1H",type=string,JSONPath=`.status.uptime1h` +kubebuilder:printcolumn:name="Latency 1H",type=string,JSONPath=`.status.latency1h` +kubebuilder:printcolumn:name="Last Transitioned",type=date,JSONPath=`.status.lastTransitionedTime` +kubebuilder:printcolumn:name="Message",type=string,priority=1,JSONPath=`.status.message` +kubebuilder:printcolumn:name="Error",type=string,priority=1,JSONPath=`.status.errorMessage` +kubebuilder:subresource:status
func (*Canary) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Canary.
func (*Canary) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Canary) DeepCopyObject ¶
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (Canary) GetAllLabels ¶ added in v0.36.0
func (Canary) GetDescription ¶ added in v0.11.4
func (*Canary) GetRunnerName ¶ added in v0.38.48
func (*Canary) SetRunnerName ¶ added in v0.38.48
type CanaryList ¶
type CanaryList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata,omitempty"` Items []Canary `json:"items"` }
CanaryList contains a list of Canary
func (*CanaryList) DeepCopy ¶
func (in *CanaryList) DeepCopy() *CanaryList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryList.
func (*CanaryList) DeepCopyInto ¶
func (in *CanaryList) DeepCopyInto(out *CanaryList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*CanaryList) DeepCopyObject ¶
func (in *CanaryList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type CanarySpec ¶
type CanarySpec struct { Env map[string]VarSource `yaml:"env,omitempty" json:"env,omitempty"` HTTP []HTTPCheck `yaml:"http,omitempty" json:"http,omitempty"` DNS []DNSCheck `yaml:"dns,omitempty" json:"dns,omitempty"` DockerPull []DockerPullCheck `yaml:"docker,omitempty" json:"docker,omitempty"` DockerPush []DockerPushCheck `yaml:"dockerPush,omitempty" json:"dockerPush,omitempty"` ContainerdPull []ContainerdPullCheck `yaml:"containerd,omitempty" json:"containerd,omitempty"` ContainerdPush []ContainerdPushCheck `yaml:"containerdPush,omitempty" json:"containerdPush,omitempty"` S3 []S3Check `yaml:"s3,omitempty" json:"s3,omitempty"` TCP []TCPCheck `yaml:"tcp,omitempty" json:"tcp,omitempty"` Pod []PodCheck `yaml:"pod,omitempty" json:"pod,omitempty"` LDAP []LDAPCheck `yaml:"ldap,omitempty" json:"ldap,omitempty"` ICMP []ICMPCheck `yaml:"icmp,omitempty" json:"icmp,omitempty"` Postgres []PostgresCheck `yaml:"postgres,omitempty" json:"postgres,omitempty"` Mssql []MssqlCheck `yaml:"mssql,omitempty" json:"mssql,omitempty"` Restic []ResticCheck `yaml:"restic,omitempty" json:"restic,omitempty"` Jmeter []JmeterCheck `yaml:"jmeter,omitempty" json:"jmeter,omitempty"` Junit []JunitCheck `yaml:"junit,omitempty" json:"junit,omitempty"` Helm []HelmCheck `yaml:"helm,omitempty" json:"helm,omitempty"` Namespace []NamespaceCheck `yaml:"namespace,omitempty" json:"namespace,omitempty"` Redis []RedisCheck `yaml:"redis,omitempty" json:"redis,omitempty"` EC2 []EC2Check `yaml:"ec2,omitempty" json:"ec2,omitempty"` Prometheus []PrometheusCheck `yaml:"prometheus,omitempty" json:"prometheus,omitempty"` MongoDB []MongoDBCheck `yaml:"mongodb,omitempty" json:"mongodb,omitempty"` CloudWatch []CloudWatchCheck `yaml:"cloudwatch,omitempty" json:"cloudwatch,omitempty"` GitHub []GitHubCheck `yaml:"github,omitempty" json:"github,omitempty"` Kubernetes []KubernetesCheck `yaml:"kubernetes,omitempty" json:"kubernetes,omitempty"` Folder []FolderCheck `yaml:"folder,omitempty" json:"folder,omitempty"` Exec []ExecCheck `yaml:"exec,omitempty" json:"exec,omitempty"` AwsConfig []AwsConfigCheck `yaml:"awsConfig,omitempty" json:"awsConfig,omitempty"` // interval (in seconds) to run checks on Deprecated in favor of Schedule Interval uint64 `yaml:"interval,omitempty" json:"interval,omitempty"` // Schedule to run checks on. Supports all cron expression, example: '30 3-6,20-23 * * *'. For more info about cron expression syntax see https://en.wikipedia.org/wiki/Cron // Also supports golang duration, can be set as '@every 1m30s' which runs the check every 1 minute and 30 seconds. Schedule string `yaml:"schedule,omitempty" json:"schedule,omitempty"` Icon string `yaml:"icon,omitempty" json:"icon,omitempty"` Severity string `yaml:"severity,omitempty" json:"severity,omitempty"` Owner string `yaml:"owner,omitempty" json:"owner,omitempty"` ResultMode ResultMode `yaml:"resultMode,omitempty" json:"resultMode,omitempty"` }
CanarySpec defines the desired state of Canary
func (*CanarySpec) DeepCopy ¶
func (in *CanarySpec) DeepCopy() *CanarySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanarySpec.
func (*CanarySpec) DeepCopyInto ¶
func (in *CanarySpec) DeepCopyInto(out *CanarySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CanarySpec) GetAllChecks ¶ added in v0.11.4
func (spec CanarySpec) GetAllChecks() []external.Check
func (CanarySpec) SetSQLDrivers ¶ added in v0.22.1
func (spec CanarySpec) SetSQLDrivers()
type CanaryStatus ¶
type CanaryStatus struct { // +optional LastTransitionedTime *metav1.Time `json:"lastTransitionedTime,omitempty"` // +optional LastCheck *metav1.Time `json:"lastCheck,omitempty"` // +optional Message *string `json:"message,omitempty"` // +optional ErrorMessage *string `json:"errorMessage,omitempty"` // +optional Status *CanaryStatusCondition `json:"status,omitempty"` // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` // +optional ChecksStatus map[string]*CheckStatus `json:"checkStatus,omitempty"` // Availibility over a rolling 1h period Uptime1H string `json:"uptime1h,omitempty"` // Average latency to complete all checks Latency1H string `json:"latency1h,omitempty"` // contains filtered or unexported fields }
CanaryStatus defines the observed state of Canary
func (*CanaryStatus) DeepCopy ¶
func (in *CanaryStatus) DeepCopy() *CanaryStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CanaryStatus.
func (*CanaryStatus) DeepCopyInto ¶
func (in *CanaryStatus) DeepCopyInto(out *CanaryStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CanaryStatusCondition ¶
type CanaryStatusCondition string
var ( Passed CanaryStatusCondition = "Passed" Failed CanaryStatusCondition = "Failed" Invalid CanaryStatusCondition = "Invalid" )
type Check ¶ added in v0.38.11
type Check struct {
Name, Type, Endpoint, Description, Icon string
}
func (*Check) DeepCopy ¶ added in v0.38.12
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Check.
func (*Check) DeepCopyInto ¶ added in v0.38.12
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Check) GetDescription ¶ added in v0.38.11
func (Check) GetEndpoint ¶ added in v0.38.11
type CheckStatus ¶ added in v0.38.11
type CheckStatus struct { // +optional LastTransitionedTime *metav1.Time `json:"lastTransitionedTime,omitempty"` // +optionals LastCheck *metav1.Time `json:"lastCheck,omitempty"` // +optional Message *string `json:"message,omitempty"` // +optional ErrorMessage *string `json:"errorMessage,omitempty"` // Availibility over a rolling 1h period Uptime1H string `json:"uptime1h,omitempty"` // Average latency to complete all checks Latency1H string `json:"latency1h,omitempty"` }
func (*CheckStatus) DeepCopy ¶ added in v0.38.11
func (in *CheckStatus) DeepCopy() *CheckStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CheckStatus.
func (*CheckStatus) DeepCopyInto ¶ added in v0.38.11
func (in *CheckStatus) DeepCopyInto(out *CheckStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudWatch ¶ added in v0.38.31
type CloudWatch struct {
CloudWatchCheck `yaml:",inline" json:",inline"`
}
This checks the cloudwatch for all the Active alarm and response with the reason [include:aws/cloudwatch_pass.yaml]
func (*CloudWatch) DeepCopy ¶ added in v0.38.31
func (in *CloudWatch) DeepCopy() *CloudWatch
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudWatch.
func (*CloudWatch) DeepCopyInto ¶ added in v0.38.31
func (in *CloudWatch) DeepCopyInto(out *CloudWatch)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type CloudWatchCheck ¶ added in v0.38.31
type CloudWatchCheck struct { Description `yaml:",inline" json:",inline"` AWSConnection `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` Filter CloudWatchFilter `yaml:"filter,omitempty" json:"filter,omitempty"` }
func (*CloudWatchCheck) DeepCopy ¶ added in v0.38.31
func (in *CloudWatchCheck) DeepCopy() *CloudWatchCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudWatchCheck.
func (*CloudWatchCheck) DeepCopyInto ¶ added in v0.38.31
func (in *CloudWatchCheck) DeepCopyInto(out *CloudWatchCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (CloudWatchCheck) GetEndpoint ¶ added in v0.38.31
func (c CloudWatchCheck) GetEndpoint() string
func (CloudWatchCheck) GetType ¶ added in v0.38.31
func (c CloudWatchCheck) GetType() string
type CloudWatchFilter ¶ added in v0.38.31
type CloudWatchFilter struct { ActionPrefix *string `yaml:"actionPrefix,omitempty" json:"actionPrefix,omitempty"` AlarmPrefix *string `yaml:"alarmPrefix,omitempty" json:"alarmPrefix,omitempty"` Alarms []string `yaml:"alarms,omitempty" json:"alarms,omitempty"` State string `yaml:"state,omitempty" json:"state,omitempty"` }
func (*CloudWatchFilter) DeepCopy ¶ added in v0.38.31
func (in *CloudWatchFilter) DeepCopy() *CloudWatchFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new CloudWatchFilter.
func (*CloudWatchFilter) DeepCopyInto ¶ added in v0.38.31
func (in *CloudWatchFilter) DeepCopyInto(out *CloudWatchFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Condition ¶
type Condition struct { // Type of condition in CamelCase or in foo.example.com/CamelCase. // Many .condition.type values are consistent across resources like Available, but because arbitrary conditions can be // useful (see .node.status.conditions), the ability to deconflict is important. // +required Type string `json:"type" protobuf:"bytes,1,opt,name=type"` // Status of the condition, one of True, False, Unknown. // +required Status ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"` // If set, this represents the .metadata.generation that the condition was set based upon. // For instance, if .metadata.generation is currently 12, but the .status.condition[x].observedGeneration is 9, the condition is out of date // with respect to the current state of the instance. // +optional ObservedGeneration int64 `json:"observedGeneration,omitempty" protobuf:"varint,3,opt,name=observedGeneration"` // Last time the condition transitioned from one status to another. // This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. // +required LastTransitionTime metav1.Time `json:"lastTransitionTime" protobuf:"bytes,4,opt,name=lastTransitionTime"` // The reason for the condition's last transition in CamelCase. // The specific API may choose whether or not this field is considered a guaranteed API. // This field may not be empty. // +required Reason string `json:"reason" protobuf:"bytes,5,opt,name=reason"` // A human readable message indicating details about the transition. // This field may be empty. // +required Message string `json:"message" protobuf:"bytes,6,opt,name=message"` }
func (*Condition) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ConditionStatus ¶
type ConditionStatus string
const ( ConditionStatusTrue ConditionStatus = "True" ConditionStatusFalse ConditionStatus = "False" ConditionStatusUnknown ConditionStatus = "Unknown" )
type Connectable ¶ added in v0.38.25
type Connectable interface {
GetConnection() string
}
+k8s:deepcopy-gen=false
type Connection ¶ added in v0.38.25
type Connection struct { Connection string `yaml:"connection" json:"connection" template:"true"` Authentication Authentication `yaml:"auth,omitempty" json:"auth,omitempty"` }
func (*Connection) DeepCopy ¶ added in v0.38.25
func (in *Connection) DeepCopy() *Connection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Connection.
func (*Connection) DeepCopyInto ¶ added in v0.38.25
func (in *Connection) DeepCopyInto(out *Connection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Connection) GetConnection ¶ added in v0.38.25
func (c Connection) GetConnection() string
func (Connection) GetEndpoint ¶ added in v0.38.25
func (c Connection) GetEndpoint() string
type ContainerdPull ¶ added in v0.38.32
type ContainerdPull struct {
ContainerdPullCheck `yaml:",inline" json:",inline"`
}
[include:k8s/containerd_pull_pass.yaml]
func (*ContainerdPull) DeepCopy ¶ added in v0.38.32
func (in *ContainerdPull) DeepCopy() *ContainerdPull
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerdPull.
func (*ContainerdPull) DeepCopyInto ¶ added in v0.38.32
func (in *ContainerdPull) DeepCopyInto(out *ContainerdPull)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerdPullCheck ¶ added in v0.12.0
type ContainerdPullCheck struct { Description `yaml:",inline" json:",inline"` Image string `yaml:"image" json:"image"` Auth Authentication `yaml:"auth,omitempty" json:"auth,omitempty"` ExpectedDigest string `yaml:"expectedDigest,omitempty" json:"expectedDigest,omitempty"` ExpectedSize int64 `yaml:"expectedSize,omitempty" json:"expectedSize,omitempty"` }
func (*ContainerdPullCheck) DeepCopy ¶ added in v0.15.1
func (in *ContainerdPullCheck) DeepCopy() *ContainerdPullCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerdPullCheck.
func (*ContainerdPullCheck) DeepCopyInto ¶ added in v0.15.1
func (in *ContainerdPullCheck) DeepCopyInto(out *ContainerdPullCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ContainerdPullCheck) GetEndpoint ¶ added in v0.12.0
func (c ContainerdPullCheck) GetEndpoint() string
func (ContainerdPullCheck) GetType ¶ added in v0.12.0
func (c ContainerdPullCheck) GetType() string
type ContainerdPush ¶ added in v0.38.32
type ContainerdPush struct {
ContainerdPushCheck `yaml:",inline" json:",inline"`
}
[include:k8s/containerd_push_pass.yaml]
func (*ContainerdPush) DeepCopy ¶ added in v0.38.32
func (in *ContainerdPush) DeepCopy() *ContainerdPush
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerdPush.
func (*ContainerdPush) DeepCopyInto ¶ added in v0.38.32
func (in *ContainerdPush) DeepCopyInto(out *ContainerdPush)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ContainerdPushCheck ¶ added in v0.12.0
type ContainerdPushCheck struct { Description `yaml:",inline" json:",inline"` Image string `yaml:"image" json:"image"` Username string `yaml:"username" json:"username,omitempty"` Password string `yaml:"password" json:"password,omitempty"` }
func (*ContainerdPushCheck) DeepCopy ¶ added in v0.15.1
func (in *ContainerdPushCheck) DeepCopy() *ContainerdPushCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContainerdPushCheck.
func (*ContainerdPushCheck) DeepCopyInto ¶ added in v0.15.1
func (in *ContainerdPushCheck) DeepCopyInto(out *ContainerdPushCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ContainerdPushCheck) GetEndpoint ¶ added in v0.12.0
func (c ContainerdPushCheck) GetEndpoint() string
func (ContainerdPushCheck) GetType ¶ added in v0.12.0
func (c ContainerdPushCheck) GetType() string
type DNS ¶
type DNS struct {
DNSCheck `yaml:",inline" json:"inline"`
}
[include:minimal/dns_pass.yaml]
func (*DNS) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNS.
func (*DNS) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DNSCheck ¶
type DNSCheck struct { Description `yaml:",inline" json:",inline"` Server string `yaml:"server" json:"server,omitempty"` Port int `yaml:"port,omitempty" json:"port,omitempty"` Query string `yaml:"query,omitempty" json:"query,omitempty"` QueryType string `yaml:"querytype,omitempty" json:"querytype,omitempty"` MinRecords int `yaml:"minrecords,omitempty" json:"minrecords,omitempty"` ExactReply []string `yaml:"exactreply,omitempty" json:"exactreply,omitempty"` Timeout int `yaml:"timeout,omitempty" json:"timeout,omitempty"` ThresholdMillis int `yaml:"thresholdMillis,omitempty" json:"thresholdMillis,omitempty"` }
func (*DNSCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DNSCheck.
func (*DNSCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DNSCheck) GetEndpoint ¶
type Description ¶ added in v0.30.0
type Description struct { // Description for the check Description string `yaml:"description,omitempty" json:"description,omitempty" template:"true"` // Name of the check Name string `yaml:"name,omitempty" json:"name,omitempty" template:"true"` // Icon for overwriting default icon on the dashboard Icon string `yaml:"icon,omitempty" json:"icon,omitempty" template:"true"` }
func (*Description) DeepCopy ¶ added in v0.30.0
func (in *Description) DeepCopy() *Description
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Description.
func (*Description) DeepCopyInto ¶ added in v0.30.0
func (in *Description) DeepCopyInto(out *Description)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Description) GetDescription ¶ added in v0.30.0
func (d Description) GetDescription() string
func (Description) GetIcon ¶ added in v0.33.1
func (d Description) GetIcon() string
func (Description) GetName ¶ added in v0.38.40
func (d Description) GetName() string
func (Description) String ¶ added in v0.38.17
func (d Description) String() string
type Display ¶ added in v0.38.4
type Display struct {
Template `yaml:",inline" json:",inline"`
}
func (*Display) DeepCopy ¶ added in v0.38.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Display.
func (*Display) DeepCopyInto ¶ added in v0.38.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Display) GetDisplayTemplate ¶ added in v0.38.4
type DisplayTemplate ¶ added in v0.38.4
type DisplayTemplate interface {
GetDisplayTemplate() Template
}
+k8s:deepcopy-gen=false
type DockerPull ¶
type DockerPull struct {
DockerPullCheck `yaml:",inline" json:"inline"`
}
[include:k8s/docker_pass.yaml]
func (*DockerPull) DeepCopy ¶
func (in *DockerPull) DeepCopy() *DockerPull
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerPull.
func (*DockerPull) DeepCopyInto ¶
func (in *DockerPull) DeepCopyInto(out *DockerPull)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DockerPullCheck ¶
type DockerPullCheck struct { Description `yaml:",inline" json:",inline"` Image string `yaml:"image" json:"image"` Auth *Authentication `yaml:"auth,omitempty" json:"auth,omitempty"` ExpectedDigest string `yaml:"expectedDigest" json:"expectedDigest,omitempty"` ExpectedSize int64 `yaml:"expectedSize" json:"expectedSize,omitempty"` }
func (*DockerPullCheck) DeepCopy ¶
func (in *DockerPullCheck) DeepCopy() *DockerPullCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerPullCheck.
func (*DockerPullCheck) DeepCopyInto ¶
func (in *DockerPullCheck) DeepCopyInto(out *DockerPullCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DockerPullCheck) GetEndpoint ¶
func (c DockerPullCheck) GetEndpoint() string
func (DockerPullCheck) GetType ¶
func (c DockerPullCheck) GetType() string
type DockerPush ¶
type DockerPush struct {
DockerPushCheck `yaml:",inline" json:"inline"`
}
DockerPush check will try to push a Docker image to specified registry. /* [include:k8s/docker_push_pass.yaml]
func (*DockerPush) DeepCopy ¶
func (in *DockerPush) DeepCopy() *DockerPush
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerPush.
func (*DockerPush) DeepCopyInto ¶
func (in *DockerPush) DeepCopyInto(out *DockerPush)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DockerPushCheck ¶
type DockerPushCheck struct { Description `yaml:",inline" json:",inline"` Image string `yaml:"image" json:"image"` Auth *Authentication `yaml:"auth,omitempty" json:"auth,omitempty"` }
func (*DockerPushCheck) DeepCopy ¶
func (in *DockerPushCheck) DeepCopy() *DockerPushCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DockerPushCheck.
func (*DockerPushCheck) DeepCopyInto ¶
func (in *DockerPushCheck) DeepCopyInto(out *DockerPushCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (DockerPushCheck) GetEndpoint ¶
func (c DockerPushCheck) GetEndpoint() string
func (DockerPushCheck) GetType ¶
func (c DockerPushCheck) GetType() string
type EC2 ¶ added in v0.38.32
type EC2 struct {
EC2Check `yaml:",inline" json:",inline"`
}
[include:aws/aws_config_pass.yaml]
func (*EC2) DeepCopy ¶ added in v0.38.32
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EC2.
func (*EC2) DeepCopyInto ¶ added in v0.38.32
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type EC2Check ¶ added in v0.33.0
type EC2Check struct { Description `yaml:",inline" json:",inline"` AWSConnection `yaml:",inline" json:",inline"` AMI string `yaml:"ami,omitempty" json:"ami,omitempty"` UserData string `yaml:"userData,omitempty" json:"userData,omitempty"` SecurityGroup string `yaml:"securityGroup,omitempty" json:"securityGroup,omitempty"` KeepAlive bool `yaml:"keepAlive,omitempty" json:"keepAlive,omitempty"` WaitTime int `yaml:"waitTime,omitempty" json:"waitTime,omitempty"` TimeOut int `yaml:"timeOut,omitempty" json:"timeOut,omitempty"` CanaryRef []v1.LocalObjectReference `yaml:"canaryRef,omitempty" json:"canaryRef,omitempty"` }
func (*EC2Check) DeepCopy ¶ added in v0.33.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new EC2Check.
func (*EC2Check) DeepCopyInto ¶ added in v0.33.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (EC2Check) GetEndpoint ¶ added in v0.33.0
type Exec ¶ added in v0.38.54
type Exec struct {
ExecCheck `yaml:",inline" json:",inline"`
}
Exec Check executes a command or scrtipt file on the target host. On Linux/MacOS uses bash and on Windows uses powershell. [include:minimal/exec_pass.yaml]
func (*Exec) DeepCopy ¶ added in v0.38.54
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Exec.
func (*Exec) DeepCopyInto ¶ added in v0.38.54
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ExecCheck ¶ added in v0.38.54
type ExecCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` // Script can be a inline script or a path to a script that needs to be executed // On windows executed via powershell and in darwin and linux executed using bash Script *string `yaml:"script" json:"script"` }
func (*ExecCheck) DeepCopy ¶ added in v0.38.54
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ExecCheck.
func (*ExecCheck) DeepCopyInto ¶ added in v0.38.54
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ExecCheck) GetEndpoint ¶ added in v0.38.54
func (ExecCheck) GetTestFunction ¶ added in v0.38.54
type Folder ¶ added in v0.38.45
type Folder struct {
FolderCheck `yaml:",inline" json:",inline"`
}
Folder Check provides an abstraction over checker related to folder. Currently, used to perform the following checks:
- s3bucket check
- search objects matching the provided object path pattern
- check that latest object is no older than provided MaxAge value in seconds
- check that latest object size is not smaller than provided MinSize value in bytes.
- gcsBucket check
- search objects matching the provided object path pattern
- check that latest object is no older than provided MaxAge value in seconds
- check that latest object size is not smaller than provided MinSize value in bytes.
- Smb check: which connects to the given samba server with given credentials find the age of the latest updated file and compare it with minAge count the number of file present and compare with minCount if defined
- local Folder check
[include:quarantine/smb_pass.yaml] [include:datasources/s3_bucket_pass.yaml] [include:datasource/folder_pass.yaml]
func (*Folder) DeepCopy ¶ added in v0.38.45
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Folder.
func (*Folder) DeepCopyInto ¶ added in v0.38.45
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type FolderCheck ¶ added in v0.38.45
type FolderCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` // Path can be the s3 or gcs bucket, or reference to local folder // for s3 the prefix need to be s3://<bucket-name> for gCloud, gcs://<bucket-name> Path string `yaml:"path" json:"path"` Filter FolderFilter `yaml:"filter,omitempty" json:"filter,omitempty"` FolderTest `yaml:",inline" json:",inline"` *AWSConnection `yaml:"awsConnection,omitempty" json:"awsConnection,omitempty"` *GCPConnection `yaml:"gcpConnection,omitempty" json:"gcpConnection,omitempty"` *SMBConnection `yaml:"smbConnection,omitempty" json:"smbConnection,omitempty"` }
func (*FolderCheck) DeepCopy ¶ added in v0.38.45
func (in *FolderCheck) DeepCopy() *FolderCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FolderCheck.
func (*FolderCheck) DeepCopyInto ¶ added in v0.38.45
func (in *FolderCheck) DeepCopyInto(out *FolderCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FolderCheck) GetEndpoint ¶ added in v0.38.45
func (c FolderCheck) GetEndpoint() string
func (FolderCheck) GetType ¶ added in v0.38.45
func (c FolderCheck) GetType() string
type FolderFilter ¶ added in v0.38.16
type FolderFilter struct { MinAge Duration `yaml:"minAge,omitempty" json:"minAge,omitempty"` MaxAge Duration `yaml:"maxAge,omitempty" json:"maxAge,omitempty"` MinSize Size `yaml:"minSize,omitempty" json:"minSize,omitempty"` MaxSize Size `yaml:"maxSize,omitempty" json:"maxSize,omitempty"` Regex string `yaml:"regex,omitempty" json:"regex,omitempty"` }
func (*FolderFilter) DeepCopy ¶ added in v0.38.16
func (in *FolderFilter) DeepCopy() *FolderFilter
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FolderFilter.
func (*FolderFilter) DeepCopyInto ¶ added in v0.38.16
func (in *FolderFilter) DeepCopyInto(out *FolderFilter)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (FolderFilter) New ¶ added in v0.38.16
func (f FolderFilter) New() (*FolderFilterContext, error)
type FolderFilterContext ¶ added in v0.38.16
type FolderFilterContext struct { FolderFilter // contains filtered or unexported fields }
+k8s:deepcopy-gen=false
type FolderTest ¶ added in v0.38.4
type FolderTest struct { //MinAge the latest object should be older than defined age MinAge Duration `yaml:"minAge,omitempty" json:"minAge,omitempty"` //MaxAge the latest object should be younger than defined age MaxAge Duration `yaml:"maxAge,omitempty" json:"maxAge,omitempty"` //MinCount the minimum number of files inside the searchPath MinCount *int `yaml:"minCount,omitempty" json:"minCount,omitempty"` //MinCount the minimum number of files inside the searchPath MaxCount *int `yaml:"maxCount,omitempty" json:"maxCount,omitempty"` //MinSize of the files inside the searchPath MinSize Size `yaml:"minSize,omitempty" json:"minSize,omitempty"` //MaxSize of the files inside the searchPath MaxSize Size `yaml:"maxSize,omitempty" json:"maxSize,omitempty"` }
func (*FolderTest) DeepCopy ¶ added in v0.38.4
func (in *FolderTest) DeepCopy() *FolderTest
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FolderTest.
func (*FolderTest) DeepCopyInto ¶ added in v0.38.4
func (in *FolderTest) DeepCopyInto(out *FolderTest)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GCPConnection ¶ added in v0.38.26
type GCPConnection struct { Endpoint string `yaml:"endpoint" json:"endpoint,omitempty"` Credentials *kommons.EnvVar `yaml:"credentials" json:"credentials,omitempty"` }
func (*GCPConnection) DeepCopy ¶ added in v0.38.26
func (in *GCPConnection) DeepCopy() *GCPConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GCPConnection.
func (*GCPConnection) DeepCopyInto ¶ added in v0.38.26
func (in *GCPConnection) DeepCopyInto(out *GCPConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Git ¶ added in v0.38.43
type Git struct {
GitHubCheck `yaml:",inline" json:",inline"`
}
Git executes a SQL style query against a github repo using https://github.com/askgitdev/askgit
func (*Git) DeepCopy ¶ added in v0.38.43
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Git.
func (*Git) DeepCopyInto ¶ added in v0.38.43
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type GitHubCheck ¶ added in v0.38.43
type GitHubCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` // Query to be executed. Please see https://github.com/askgitdev/askgit for more details regarding syntax Query string `yaml:"query" json:"query"` GithubToken *kommons.EnvVar `yaml:"githubToken,omitempty" json:"githubToken,omitempty"` }
func (*GitHubCheck) DeepCopy ¶ added in v0.38.43
func (in *GitHubCheck) DeepCopy() *GitHubCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubCheck.
func (*GitHubCheck) DeepCopyInto ¶ added in v0.38.43
func (in *GitHubCheck) DeepCopyInto(out *GitHubCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (GitHubCheck) GetEndpoint ¶ added in v0.38.43
func (c GitHubCheck) GetEndpoint() string
func (GitHubCheck) GetType ¶ added in v0.38.43
func (c GitHubCheck) GetType() string
type HTTP ¶
type HTTP struct {
HTTPCheck `yaml:",inline" json:"inline"`
}
[include:minimal/http_pass.yaml]
func (*HTTP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTP.
func (*HTTP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HTTPCheck ¶
type HTTPCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` // HTTP endpoint to check. Mutually exclusive with Namespace Endpoint string `yaml:"endpoint" json:"endpoint,omitempty" template:"true"` // Namespace to crawl for TLS endpoints. Mutually exclusive with Endpoint Namespace string `yaml:"namespace,omitempty" json:"namespace,omitempty" template:"true"` // Maximum duration in milliseconds for the HTTP request. It will fail the check if it takes longer. ThresholdMillis int `yaml:"thresholdMillis,omitempty" json:"thresholdMillis,omitempty"` // Expected response codes for the HTTP Request. ResponseCodes []int `yaml:"responseCodes,omitempty" json:"responseCodes,omitempty"` // Exact response content expected to be returned by the endpoint. ResponseContent string `yaml:"responseContent,omitempty" json:"responseContent,omitempty"` // Path and value to of expect JSON response by the endpoint ResponseJSONContent JSONCheck `yaml:"responseJSONContent,omitempty" json:"responseJSONContent,omitempty"` // Maximum number of days until the SSL Certificate expires. MaxSSLExpiry int `yaml:"maxSSLExpiry,omitempty" json:"maxSSLExpiry,omitempty"` // Method to use - defaults to GET Method string `yaml:"method,omitempty" json:"method,omitempty"` // NTLM when set to true will do authentication using NTLM v1 protocol NTLM bool `yaml:"ntlm,omitempty" json:"ntlm,omitempty"` // NTLM when set to true will do authentication using NTLM v2 protocol NTLMv2 bool `yaml:"ntlmv2,omitempty" json:"ntlmv2,omitempty"` // Request Body Contents Body string `yaml:"body,omitempty" json:"body,omitempty" template:"true"` // Header fields to be used in the query Headers []kommons.EnvVar `yaml:"headers,omitempty" json:"headers,omitempty"` // Credentials for authentication headers Authentication *Authentication `yaml:"authentication,omitempty" json:"authentication,omitempty"` }
func (*HTTPCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HTTPCheck.
func (*HTTPCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HTTPCheck) GetEndpoint ¶
type Helm ¶
type Helm struct {
HelmCheck `yaml:",inline" json:"inline"`
}
[include:datasources/helm_pass.yaml]
func (*Helm) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Helm.
func (*Helm) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HelmCheck ¶
type HelmCheck struct { Description `yaml:",inline" json:",inline"` Chartmuseum string `yaml:"chartmuseum" json:"chartmuseum,omitempty"` Project string `yaml:"project,omitempty" json:"project,omitempty"` Auth *Authentication `yaml:"auth,omitempty" json:"auth,omitempty"` CaFile string `yaml:"cafile,omitempty" json:"cafile,omitempty"` }
func (*HelmCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HelmCheck.
func (*HelmCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (HelmCheck) GetEndpoint ¶
type ICMP ¶
type ICMP struct {
ICMPCheck `yaml:",inline" json:"inline"`
}
This test will check ICMP packet loss and duration.
[include:quarantine/icmp_pass.yaml]
func (*ICMP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ICMP.
func (*ICMP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ICMPCheck ¶
type ICMPCheck struct { Description `yaml:",inline" json:",inline"` Endpoint string `yaml:"endpoint" json:"endpoint,omitempty"` ThresholdMillis int64 `yaml:"thresholdMillis,omitempty" json:"thresholdMillis,omitempty"` PacketLossThreshold int64 `yaml:"packetLossThreshold,omitempty" json:"packetLossThreshold,omitempty"` PacketCount int `yaml:"packetCount,omitempty" json:"packetCount,omitempty"` }
func (*ICMPCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ICMPCheck.
func (*ICMPCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ICMPCheck) GetEndpoint ¶
type JSONCheck ¶ added in v0.17.0
type JSONCheck struct { Path string `yaml:"path" json:"path"` Value string `yaml:"value" json:"value"` }
func (*JSONCheck) DeepCopy ¶ added in v0.17.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JSONCheck.
func (*JSONCheck) DeepCopyInto ¶ added in v0.17.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Jmeter ¶ added in v0.19.1
type Jmeter struct {
JmeterCheck `yaml:",inline" json:",inline"`
}
Jmeter check will run jmeter cli against the supplied host [include:k8s/jmeter_pass.yaml]
func (*Jmeter) DeepCopy ¶ added in v0.19.1
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Jmeter.
func (*Jmeter) DeepCopyInto ¶ added in v0.19.1
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JmeterCheck ¶ added in v0.19.1
type JmeterCheck struct { Description `yaml:",inline" json:",inline"` // Jmx defines tge ConfigMap or Secret reference to get the JMX test plan Jmx kommons.EnvVar `yaml:"jmx" json:"jmx"` // Host is the server against which test plan needs to be executed Host string `yaml:"host,omitempty" json:"host,omitempty"` // Port on which the server is running Port int32 `yaml:"port,omitempty" json:"port,omitempty"` // Properties defines the local Jmeter properties Properties []string `yaml:"properties,omitempty" json:"properties,omitempty"` // SystemProperties defines the java system property SystemProperties []string `yaml:"systemProperties,omitempty" json:"systemProperties,omitempty"` // ResponseDuration under which the all the test should pass ResponseDuration string `yaml:"responseDuration,omitempty" json:"responseDuration,omitempty"` }
func (*JmeterCheck) DeepCopy ¶ added in v0.19.1
func (in *JmeterCheck) DeepCopy() *JmeterCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JmeterCheck.
func (*JmeterCheck) DeepCopyInto ¶ added in v0.19.1
func (in *JmeterCheck) DeepCopyInto(out *JmeterCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (JmeterCheck) GetEndpoint ¶ added in v0.19.1
func (c JmeterCheck) GetEndpoint() string
func (JmeterCheck) GetType ¶ added in v0.19.1
func (c JmeterCheck) GetType() string
type Junit ¶ added in v0.21.0
type Junit struct {
JunitCheck `yaml:",inline" json:",inline"`
}
Junit check will wait for the given pod to be completed than parses all the xml files present in the defined testResults directory
[include:k8s/junit_pass.yaml]
func (*Junit) DeepCopy ¶ added in v0.21.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Junit.
func (*Junit) DeepCopyInto ¶ added in v0.21.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type JunitCheck ¶ added in v0.21.0
type JunitCheck struct { Description `yaml:",inline" json:",inline"` TestResults string `yaml:"testResults" json:"testResults"` Templatable `yaml:",inline" json:",inline"` // Timeout in minutes to wait for specified container to finish its job. Defaults to 5 minutes Timeout int `yaml:"timeout,omitempty" json:"timeout,omitempty"` Spec v1.PodSpec `yaml:"spec" json:"spec"` }
func (*JunitCheck) DeepCopy ¶ added in v0.21.0
func (in *JunitCheck) DeepCopy() *JunitCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new JunitCheck.
func (*JunitCheck) DeepCopyInto ¶ added in v0.21.0
func (in *JunitCheck) DeepCopyInto(out *JunitCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (JunitCheck) GetEndpoint ¶ added in v0.21.0
func (c JunitCheck) GetEndpoint() string
func (JunitCheck) GetTimeout ¶ added in v0.30.0
func (c JunitCheck) GetTimeout() int
func (JunitCheck) GetType ¶ added in v0.21.0
func (c JunitCheck) GetType() string
type Kubernetes ¶ added in v0.38.44
type Kubernetes struct {
KubernetesCheck `yaml:",inline" json:",inline"`
}
[include:k8s/kuberenetes_pass.yaml]
func (*Kubernetes) DeepCopy ¶ added in v0.38.44
func (in *Kubernetes) DeepCopy() *Kubernetes
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Kubernetes.
func (*Kubernetes) DeepCopyInto ¶ added in v0.38.44
func (in *Kubernetes) DeepCopyInto(out *Kubernetes)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type KubernetesCheck ¶ added in v0.38.44
type KubernetesCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` Namespace ResourceSelector `yaml:"namespace,omitempty" json:"namespace,omitempty"` Resource ResourceSelector `yaml:"resource,omitempty" json:"resource,omitempty"` Kind string `yaml:"kind" json:"kind"` Ready *bool `yaml:"ready,omitempty" json:"ready,omitempty"` }
func (KubernetesCheck) CheckReady ¶ added in v0.38.44
func (c KubernetesCheck) CheckReady() bool
func (*KubernetesCheck) DeepCopy ¶ added in v0.38.44
func (in *KubernetesCheck) DeepCopy() *KubernetesCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubernetesCheck.
func (*KubernetesCheck) DeepCopyInto ¶ added in v0.38.44
func (in *KubernetesCheck) DeepCopyInto(out *KubernetesCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (KubernetesCheck) GetEndpoint ¶ added in v0.38.44
func (c KubernetesCheck) GetEndpoint() string
func (KubernetesCheck) GetType ¶ added in v0.38.44
func (c KubernetesCheck) GetType() string
type LDAP ¶
type LDAP struct {
LDAPCheck `yaml:",inline" json:"inline"`
}
The LDAP check will:
* bind using provided user/password to the ldap host. Supports ldap/ldaps protocols. * search an object type in the provided bind DN.s
[include:datasources/ldap_pass.yaml]
func (*LDAP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LDAP.
func (*LDAP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type LDAPCheck ¶
type LDAPCheck struct { Description `yaml:",inline" json:",inline"` Host string `yaml:"host" json:"host" template:"true"` Auth *Authentication `yaml:"auth" json:"auth"` BindDN string `yaml:"bindDN" json:"bindDN"` UserSearch string `yaml:"userSearch,omitempty" json:"userSearch,omitempty"` SkipTLSVerify bool `yaml:"skipTLSVerify,omitempty" json:"skipTLSVerify,omitempty"` }
func (*LDAPCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LDAPCheck.
func (*LDAPCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (LDAPCheck) GetEndpoint ¶
type Mongo ¶ added in v0.38.32
type Mongo struct {
MongoDBCheck `yaml:",inline" json:",inline"`
}
[include:datasources/mongo_pass.yaml]
func (*Mongo) DeepCopy ¶ added in v0.38.32
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Mongo.
func (*Mongo) DeepCopyInto ¶ added in v0.38.32
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MongoDBCheck ¶ added in v0.38.4
type MongoDBCheck struct { Description `yaml:",inline" json:",inline"` // Monogodb connection string, e.g. mongodb://:27017/?authSource=admin, See https://docs.mongodb.com/manual/reference/connection-string/ Connection `yaml:",inline" json:",inline"` }
func (*MongoDBCheck) DeepCopy ¶ added in v0.38.4
func (in *MongoDBCheck) DeepCopy() *MongoDBCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MongoDBCheck.
func (*MongoDBCheck) DeepCopyInto ¶ added in v0.38.4
func (in *MongoDBCheck) DeepCopyInto(out *MongoDBCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MongoDBCheck) GetType ¶ added in v0.38.4
func (c MongoDBCheck) GetType() string
type MsSQL ¶ added in v0.19.2
type MsSQL struct {
MssqlCheck `yaml:",inline" json:"inline"`
}
This check will try to connect to a specified MsSQL database, run a query against it and verify the results.
[include:datasources/mssql_pass.yaml]
func (*MsSQL) DeepCopy ¶ added in v0.19.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MsSQL.
func (*MsSQL) DeepCopyInto ¶ added in v0.19.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MssqlCheck ¶ added in v0.18.0
type MssqlCheck struct {
SQLCheck `yaml:",inline" json:",inline"`
}
func (*MssqlCheck) DeepCopy ¶ added in v0.18.0
func (in *MssqlCheck) DeepCopy() *MssqlCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MssqlCheck.
func (*MssqlCheck) DeepCopyInto ¶ added in v0.18.0
func (in *MssqlCheck) DeepCopyInto(out *MssqlCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (MssqlCheck) GetType ¶ added in v0.38.32
func (m MssqlCheck) GetType() string
type Namespace ¶
type Namespace struct {
NamespaceCheck `yaml:",inline" json:"inline"`
}
The Namespace check will:
* create a new namespace using the labels/annotations provided
[include:k8s/namespace_pass.yaml]
func (*Namespace) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Namespace.
func (*Namespace) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NamespaceCheck ¶
type NamespaceCheck struct { Description `yaml:",inline" json:",inline"` CheckName string `yaml:"checkName" json:"checkName,omitempty" template:"true"` NamespaceNamePrefix string `yaml:"namespaceNamePrefix,omitempty" json:"namespaceNamePrefix,omitempty"` NamespaceLabels map[string]string `yaml:"namespaceLabels,omitempty" json:"namespaceLabels,omitempty"` NamespaceAnnotations map[string]string `yaml:"namespaceAnnotations,omitempty" json:"namespaceAnnotations,omitempty"` PodSpec string `yaml:"podSpec" json:"podSpec"` ScheduleTimeout int64 `yaml:"scheduleTimeout,omitempty" json:"schedule_timeout,omitempty"` ReadyTimeout int64 `yaml:"readyTimeout,omitempty" json:"readyTimeout,omitempty"` HTTPTimeout int64 `yaml:"httpTimeout,omitempty" json:"httpTimeout,omitempty"` DeleteTimeout int64 `yaml:"deleteTimeout,omitempty" json:"deleteTimeout,omitempty"` IngressTimeout int64 `yaml:"ingressTimeout,omitempty" json:"ingressTimeout,omitempty"` HTTPRetryInterval int64 `yaml:"httpRetryInterval,omitempty" json:"httpRetryInterval,omitempty"` Deadline int64 `yaml:"deadline,omitempty" json:"deadline,omitempty"` Port int64 `yaml:"port,omitempty" json:"port,omitempty"` Path string `yaml:"path,omitempty" json:"path,omitempty"` IngressName string `yaml:"ingressName,omitempty" json:"ingressName,omitempty" template:"true"` IngressHost string `yaml:"ingressHost,omitempty" json:"ingressHost,omitempty" template:"true"` ExpectedContent string `yaml:"expectedContent,omitempty" json:"expectedContent,omitempty" template:"true"` ExpectedHTTPStatuses []int64 `yaml:"expectedHttpStatuses,omitempty" json:"expectedHttpStatuses,omitempty"` PriorityClass string `yaml:"priorityClass,omitempty" json:"priorityClass,omitempty"` }
func (*NamespaceCheck) DeepCopy ¶
func (in *NamespaceCheck) DeepCopy() *NamespaceCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NamespaceCheck.
func (*NamespaceCheck) DeepCopyInto ¶
func (in *NamespaceCheck) DeepCopyInto(out *NamespaceCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (NamespaceCheck) GetEndpoint ¶
func (c NamespaceCheck) GetEndpoint() string
func (NamespaceCheck) GetType ¶
func (c NamespaceCheck) GetType() string
func (NamespaceCheck) String ¶
func (c NamespaceCheck) String() string
type Pod ¶
type Pod struct {
PodCheck `yaml:",inline" json:"inline"`
}
[include:k8s/pod_pass.yaml]
func (*Pod) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Pod.
func (*Pod) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PodCheck ¶
type PodCheck struct { Description `yaml:",inline" json:",inline"` Namespace string `yaml:"namespace" json:"namespace,omitempty" template:"true"` Spec string `yaml:"spec" json:"spec,omitempty"` ScheduleTimeout int64 `yaml:"scheduleTimeout,omitempty" json:"scheduleTimeout,omitempty"` ReadyTimeout int64 `yaml:"readyTimeout,omitempty" json:"readyTimeout,omitempty"` HTTPTimeout int64 `yaml:"httpTimeout,omitempty" json:"httpTimeout,omitempty"` DeleteTimeout int64 `yaml:"deleteTimeout,omitempty" json:"deleteTimeout,omitempty"` IngressTimeout int64 `yaml:"ingressTimeout,omitempty" json:"ingressTimeout,omitempty"` HTTPRetryInterval int64 `yaml:"httpRetryInterval,omitempty" json:"httpRetryInterval,omitempty"` Deadline int64 `yaml:"deadline,omitempty" json:"deadline,omitempty"` Port int64 `yaml:"port,omitempty" json:"port,omitempty"` Path string `yaml:"path,omitempty" json:"path,omitempty" template:"true"` IngressName string `yaml:"ingressName" json:"ingressName,omitempty" template:"true" ` IngressHost string `yaml:"ingressHost" json:"ingressHost,omitempty" template:"true"` ExpectedContent string `yaml:"expectedContent,omitempty" json:"expectedContent,omitempty" template:"true"` ExpectedHTTPStatuses []int `yaml:"expectedHttpStatuses,omitempty" json:"expectedHttpStatuses,omitempty"` PriorityClass string `yaml:"priorityClass,omitempty" json:"priorityClass,omitempty"` }
func (*PodCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PodCheck.
func (*PodCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PodCheck) GetEndpoint ¶
type Postgres ¶
type Postgres struct {
PostgresCheck `yaml:",inline" json:"inline"`
}
This check will try to connect to a specified Postgresql database, run a query against it and verify the results.
[include:datasources/postgres_pass.yaml]
func (*Postgres) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Postgres.
func (*Postgres) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PostgresCheck ¶
type PostgresCheck struct {
SQLCheck `yaml:",inline" json:",inline"`
}
func (*PostgresCheck) DeepCopy ¶
func (in *PostgresCheck) DeepCopy() *PostgresCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PostgresCheck.
func (*PostgresCheck) DeepCopyInto ¶
func (in *PostgresCheck) DeepCopyInto(out *PostgresCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PostgresCheck) GetType ¶
func (p PostgresCheck) GetType() string
type Prometheus ¶ added in v0.38.32
type Prometheus struct {
PrometheusCheck `yaml:",inline" json:",inline"`
}
[include:datasources/prometheus.yaml]
func (*Prometheus) DeepCopy ¶ added in v0.38.32
func (in *Prometheus) DeepCopy() *Prometheus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Prometheus.
func (*Prometheus) DeepCopyInto ¶ added in v0.38.32
func (in *Prometheus) DeepCopyInto(out *Prometheus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PrometheusCheck ¶ added in v0.35.0
type PrometheusCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` // Address of the prometheus server Host string `yaml:"host" json:"host" template:"true" ` // PromQL query Query string `yaml:"query" json:"query" template:"true"` }
func (*PrometheusCheck) DeepCopy ¶ added in v0.35.0
func (in *PrometheusCheck) DeepCopy() *PrometheusCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PrometheusCheck.
func (*PrometheusCheck) DeepCopyInto ¶ added in v0.35.0
func (in *PrometheusCheck) DeepCopyInto(out *PrometheusCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (PrometheusCheck) GetEndpoint ¶ added in v0.35.0
func (c PrometheusCheck) GetEndpoint() string
func (PrometheusCheck) GetType ¶ added in v0.35.0
func (c PrometheusCheck) GetType() string
type Redis ¶ added in v0.18.0
type Redis struct {
RedisCheck `yaml:",inline" json:"inline"`
}
func (*Redis) DeepCopy ¶ added in v0.18.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Redis.
func (*Redis) DeepCopyInto ¶ added in v0.18.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type RedisCheck ¶ added in v0.18.0
type RedisCheck struct { Description `yaml:",inline" json:",inline"` Addr string `yaml:"addr" json:"addr" template:"true"` Auth *Authentication `yaml:"auth,omitempty" json:"auth,omitempty"` DB int `yaml:"db" json:"db"` }
func (*RedisCheck) DeepCopy ¶ added in v0.18.0
func (in *RedisCheck) DeepCopy() *RedisCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RedisCheck.
func (*RedisCheck) DeepCopyInto ¶ added in v0.18.0
func (in *RedisCheck) DeepCopyInto(out *RedisCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (RedisCheck) GetEndpoint ¶ added in v0.18.0
func (c RedisCheck) GetEndpoint() string
func (RedisCheck) GetType ¶ added in v0.18.0
func (c RedisCheck) GetType() string
type ResourceSelector ¶ added in v0.38.44
type ResourceSelector struct { Name string `yaml:"name,omitempty" json:"name,omitempty"` LabelSelector string `json:"labelSelector,omitempty" yaml:"labelSelector,omitempty"` FieldSelector string `json:"fieldSelector,omitempty" yaml:"fieldSelector,omitempty"` }
func (*ResourceSelector) DeepCopy ¶ added in v0.38.44
func (in *ResourceSelector) DeepCopy() *ResourceSelector
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResourceSelector.
func (*ResourceSelector) DeepCopyInto ¶ added in v0.38.44
func (in *ResourceSelector) DeepCopyInto(out *ResourceSelector)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Restic ¶ added in v0.19.0
type Restic struct {
ResticCheck `yaml:",inline" json:"inline"`
}
func (*Restic) DeepCopy ¶ added in v0.19.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Restic.
func (*Restic) DeepCopyInto ¶ added in v0.19.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ResticCheck ¶ added in v0.19.0
type ResticCheck struct { Description `yaml:",inline" json:",inline"` // Repository The restic repository path eg: rest:https://user:pass@host:8000/ or rest:https://host:8000/ or s3:s3.amazonaws.com/bucket_name Repository string `yaml:"repository" json:"repository"` // Password for the restic repository Password *kommons.EnvVar `yaml:"password" json:"password"` // MaxAge for backup freshness MaxAge string `yaml:"maxAge" json:"maxAge"` // CheckIntegrity when enabled will check the Integrity and consistency of the restic reposiotry CheckIntegrity bool `yaml:"checkIntegrity,omitempty" json:"checkIntegrity,omitempty"` // AccessKey access key id for connection with aws s3, minio, wasabi, alibaba oss AccessKey *kommons.EnvVar `yaml:"accessKey,omitempty" json:"accessKey,omitempty"` // SecretKey secret access key for connection with aws s3, minio, wasabi, alibaba oss SecretKey *kommons.EnvVar `yaml:"secretKey,omitempty" json:"secretKey,omitempty"` // CaCert path to the root cert. In case of self-signed certificates CaCert string `yaml:"caCert,omitempty" json:"caCert,omitempty"` }
func (*ResticCheck) DeepCopy ¶ added in v0.19.0
func (in *ResticCheck) DeepCopy() *ResticCheck
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ResticCheck.
func (*ResticCheck) DeepCopyInto ¶ added in v0.19.0
func (in *ResticCheck) DeepCopyInto(out *ResticCheck)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (ResticCheck) GetEndpoint ¶ added in v0.19.0
func (c ResticCheck) GetEndpoint() string
func (ResticCheck) GetType ¶ added in v0.19.0
func (c ResticCheck) GetType() string
type ResultMode ¶ added in v0.38.52
type ResultMode string
type S3 ¶
type S3 struct {
S3Check `yaml:",inline" json:"inline"`
}
S3 check will:
* list objects in the bucket to check for Read permissions * PUT an object into the bucket for Write permissions * download previous uploaded object to check for Get permissions
[include:aws/s3_bucket_pass.yaml]
func (*S3) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3.
func (*S3) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Check ¶
type S3Check struct { Description `yaml:",inline" json:",inline"` Bucket Bucket `yaml:"bucket" json:"bucket,omitempty"` AccessKey string `yaml:"accessKey" json:"accessKey,omitempty"` SecretKey string `yaml:"secretKey" json:"secretKey,omitempty"` ObjectPath string `yaml:"objectPath" json:"objectPath,omitempty"` // Skip TLS verify when connecting to s3 SkipTLSVerify bool `yaml:"skipTLSVerify,omitempty" json:"skipTLSVerify,omitempty"` }
func (*S3Check) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Check.
func (*S3Check) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (S3Check) GetEndpoint ¶
type SMBConnection ¶ added in v0.38.49
type SMBConnection struct { //Port on which smb server is running. Defaults to 445 Port int `yaml:"port,omitempty" json:"port,omitempty"` Auth *Authentication `yaml:"auth" json:"auth"` //Domain... Domain string `yaml:"domain,omitempty" json:"domain,omitempty"` // Workstation... Workstation string `yaml:"workstation,omitempty" json:"workstation,omitempty"` Sharename string `yaml:"sharename,omitempty" json:"sharename,omitempty"` //SearchPath sub-path inside the mount location SearchPath string `yaml:"searchPath,omitempty" json:"searchPath,omitempty" ` }
func (*SMBConnection) DeepCopy ¶ added in v0.38.49
func (in *SMBConnection) DeepCopy() *SMBConnection
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SMBConnection.
func (*SMBConnection) DeepCopyInto ¶ added in v0.38.49
func (in *SMBConnection) DeepCopyInto(out *SMBConnection)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (SMBConnection) GetPort ¶ added in v0.38.49
func (c SMBConnection) GetPort() int
type SQLCheck ¶ added in v0.19.2
type SQLCheck struct { Description `yaml:",inline" json:",inline"` Templatable `yaml:",inline" json:",inline"` Connection `yaml:",inline" json:",inline"` Query string `yaml:"query" json:"query,omitempty" template:"true"` // Number rows to check for Result int `yaml:"results" json:"results,omitempty"` // contains filtered or unexported fields }
func (*SQLCheck) DeepCopy ¶ added in v0.19.2
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SQLCheck.
func (*SQLCheck) DeepCopyInto ¶ added in v0.19.2
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (SQLCheck) GetEndpoint ¶ added in v0.19.2
type SrvReply ¶
type SrvReply struct { Target string `yaml:"target,omitempty"` Port int `yaml:"port,omitempty"` Priority int `yaml:"priority,omitempty"` Weight int `yaml:"wight,omitempty"` }
func (*SrvReply) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SrvReply.
func (*SrvReply) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TCP ¶
type TCP struct {
TCPCheck `yaml:",inline" json:"inline"`
}
func (*TCP) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCP.
func (*TCP) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TCPCheck ¶
type TCPCheck struct { Description `yaml:",inline" json:",inline"` Endpoint string `yaml:"endpoint" json:"endpoint,omitempty"` ThresholdMillis int64 `yaml:"thresholdMillis,omitempty" json:"thresholdMillis,omitempty"` }
func (*TCPCheck) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TCPCheck.
func (*TCPCheck) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (TCPCheck) GetEndpoint ¶ added in v0.11.4
type Templatable ¶ added in v0.38.4
type Templatable struct { Test Template `yaml:"test,omitempty" json:"test,omitempty"` Display Template `yaml:"display,omitempty" json:"display,omitempty"` }
func (*Templatable) DeepCopy ¶ added in v0.38.4
func (in *Templatable) DeepCopy() *Templatable
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Templatable.
func (*Templatable) DeepCopyInto ¶ added in v0.38.4
func (in *Templatable) DeepCopyInto(out *Templatable)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Templatable) GetDisplayTemplate ¶ added in v0.38.4
func (t Templatable) GetDisplayTemplate() Template
func (Templatable) GetTestFunction ¶ added in v0.38.4
func (t Templatable) GetTestFunction() Template
type Template ¶ added in v0.38.4
type Template struct { Template string `yaml:"template,omitempty" json:"template,omitempty"` JSONPath string `yaml:"jsonPath,omitempty" json:"jsonPath,omitempty"` Expression string `yaml:"expr,omitempty" json:"expr,omitempty"` }
func (*Template) DeepCopy ¶ added in v0.38.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Template.
func (*Template) DeepCopyInto ¶ added in v0.38.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Test ¶ added in v0.38.4
type Test struct {
Template `yaml:",inline" json:",inline"`
}
func (*Test) DeepCopy ¶ added in v0.38.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Test.
func (*Test) DeepCopyInto ¶ added in v0.38.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (Test) GetTestTemplate ¶ added in v0.38.4
type TestFunction ¶ added in v0.38.4
type TestFunction interface {
GetTestFunction() Template
}
+k8s:deepcopy-gen=false
type VarSource ¶
type VarSource struct { // Selects a field of the pod: supports metadata.name, metadata.namespace, metadata.labels, metadata.annotations, // spec.nodeName, spec.serviceAccountName, status.hostIP, status.podIP, status.podIPs. // +optional FieldRef *corev1.ObjectFieldSelector `json:"fieldRef,omitempty" protobuf:"bytes,1,opt,name=fieldRef"` // +optional Value string `json:"value,omitempty" protobuf:"bytes,2,opt,name=value"` // Selects a key of a ConfigMap. // +optional ConfigMapKeyRef *corev1.ConfigMapKeySelector `json:"configMapKeyRef,omitempty" protobuf:"bytes,3,opt,name=configMapKeyRef"` // Selects a key of a secret in the pod's namespace // +optional SecretKeyRef *corev1.SecretKeySelector `json:"secretKeyRef,omitempty" protobuf:"bytes,4,opt,name=secretKeyRef"` }
VarSource represents a source for a value
func (*VarSource) DeepCopy ¶ added in v0.11.4
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new VarSource.
func (*VarSource) DeepCopyInto ¶ added in v0.11.4
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.