v1beta1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// GVR represents the GroupVersionResource of the CheckResult CRD.
	// nolint:gochecknoglobals // We need this global variables as constants
	GVR = schema.GroupVersionResource{
		Group:    group,
		Version:  "v1beta1",
		Resource: "checkresult",
	}
	// GK represents the GroupKind of the CheckResult CRD.
	// nolint:gochecknoglobals // We need this global variables as constants
	GK = schema.GroupKind{
		Group: group,
		Kind:  "CheckResult",
	}
)

Functions

This section is empty.

Types

type CheckResult

type CheckResult struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`
	Spec              CheckResultSpec `json:"spec"`
}

type CheckResultInterface

type CheckResultInterface interface {
	Apply(ctx context.Context, checkResult *CheckResult) (*CheckResult, error)
	Get(ctx context.Context, name string, opts metav1.GetOptions) (*CheckResult, error)
	Delete(ctx context.Context, name string, opts metav1.DeleteOptions) error
	List(ctx context.Context, opts metav1.ListOptions) (*CheckResultList, error)
}

type CheckResultList

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

type CheckResultSpec

type CheckResultSpec struct {
	Group       string `json:"group"`
	Target      string `json:"target"`
	StartTime   string `json:"startTime"`
	CompletedAt string `json:"completedAt"`
	Duration    string `json:"duration"`
	Status      string `json:"status"`
	Namespace   string `json:"namespace"`
	PodName     string `json:"podName"`
	CheckName   string `json:"checkName"`
	Owner       string `json:"owner"`
	Error       string `json:"error"`
	Frequency   int    `json:"frequency"`
}

type CheckResultV1Beta1Client

type CheckResultV1Beta1Client struct {
	// contains filtered or unexported fields
}

func (*CheckResultV1Beta1Client) CheckResults

func (c *CheckResultV1Beta1Client) CheckResults(namespace string) CheckResultInterface

type CheckResultV1Beta1Interface

type CheckResultV1Beta1Interface interface {
	CheckResults(namespace string) CheckResultInterface
}

Jump to

Keyboard shortcuts

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