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 NewForConfig ¶
func NewForConfig(kc *kube.KubernetesClient) (*CheckResultV1Beta1Client, error)
func (*CheckResultV1Beta1Client) CheckResults ¶
func (c *CheckResultV1Beta1Client) CheckResults(namespace string) CheckResultInterface
type CheckResultV1Beta1Interface ¶
type CheckResultV1Beta1Interface interface {
CheckResults(namespace string) CheckResultInterface
}
Click to show internal directories.
Click to hide internal directories.