Documentation
¶
Index ¶
- type EndpointSlice
- type EndpointSliceEndpoint
- type EndpointSliceEndpointConditions
- type K8sDeleteRequest
- type K8sDeleteRequestPreconditions
- type K8sObjectMeta
- type K8sResourceContainingStatus
- type K8sResourceList
- type K8sResourceStatus
- type K8sResourceStatusCondition
- type K8sResourceWithMetadata
- type K8sTargetRef
- type KubernetesObjectOperation
- type OwnerReference
- type Pod
- type PodIP
- type PodMetadata
- type PodStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointSlice ¶
type EndpointSlice struct {
Endpoints []*EndpointSliceEndpoint `yaml:"endpoints"`
Metadata *K8sObjectMeta `yaml:"metadata"`
}
type EndpointSliceEndpoint ¶
type EndpointSliceEndpoint struct {
Addresses []string `yaml:"addresses"`
Conditions *EndpointSliceEndpointConditions `yaml:"conditions"`
TargetRef *K8sTargetRef `yaml:"targetRef"`
NodeName string `yaml:"nodeName"`
HostName string `yaml:"hostName"` // This field maybe always empty in GKE
}
type EndpointSliceEndpointConditions ¶
type EndpointSliceEndpointConditions struct {
Ready bool `yaml:"ready"`
Serving bool `yaml:"serving"`
Terminating bool `yaml:"terminating"`
}
func (*EndpointSliceEndpointConditions) SameWith ¶
func (c *EndpointSliceEndpointConditions) SameWith(other *EndpointSliceEndpointConditions) bool
type K8sDeleteRequest ¶
type K8sDeleteRequest struct {
Preconditions *K8sDeleteRequestPreconditions `yaml:"preconditions"`
}
type K8sDeleteRequestPreconditions ¶
type K8sDeleteRequestPreconditions struct {
Uid string `yaml:"uid"`
}
type K8sObjectMeta ¶
type K8sObjectMeta struct {
Name string `yaml:"name"`
Namespace string `yaml:"namespace"`
GenerateName string `yaml:"generateName"`
UID string `yaml:"uid"`
ResourceVersion string `yaml:"resourceVersion"`
Labels map[string]string `yaml:"labels"`
Annotations map[string]string `yaml:"annotations"`
OwnerReferences []OwnerReference `yaml:"ownerReferences"`
Finalizers []string `yaml:"finalizers"`
}
type K8sResourceContainingStatus ¶
type K8sResourceContainingStatus struct {
Status *K8sResourceStatus `yaml:"status"`
}
A kubernetes resource `.status` field
type K8sResourceList ¶
type K8sResourceList struct {
Items []*K8sResourceWithMetadata `yaml:"items"`
}
type K8sResourceStatus ¶
type K8sResourceStatus struct {
Conditions []*K8sResourceStatusCondition `yaml:"conditions"`
}
type K8sResourceStatusCondition ¶
type K8sResourceStatusCondition struct {
Type string `yaml:"type"`
LastTransitionTime string `yaml:"lastTransitionTime"`
LastHeartbeatTime string `yaml:"lastHeartbeatTime"`
LastProbeTime string `yaml:"lastProbeTime"`
Message string `yaml:"message"`
Status string `yaml:"status"`
Reason string `yaml:"reason"`
}
func (*K8sResourceStatusCondition) ProbeLikeTime ¶ added in v0.50.0
func (c *K8sResourceStatusCondition) ProbeLikeTime() (time.Time, error)
func (*K8sResourceStatusCondition) ToMap ¶ added in v0.50.0
func (c *K8sResourceStatusCondition) ToMap() map[string]any
type K8sResourceWithMetadata ¶
type K8sResourceWithMetadata struct {
Metadata *K8sObjectMeta `yaml:"metadata"`
}
type K8sTargetRef ¶
type KubernetesObjectOperation ¶
type KubernetesObjectOperation struct {
APIVersion string
PluralKind string
Namespace string
Name string
SubResourceName string
Verb *pb.Verb
}
func (*KubernetesObjectOperation) Clone ¶ added in v0.50.0
func (o *KubernetesObjectOperation) Clone() *KubernetesObjectOperation
Clone returns a copy of the KubernetesObjectOperation.
func (*KubernetesObjectOperation) GetSingularKindName ¶
func (o *KubernetesObjectOperation) GetSingularKindName() string
func (*KubernetesObjectOperation) ResourcePath ¶ added in v0.50.0
func (o *KubernetesObjectOperation) ResourcePath() string
type OwnerReference ¶
type Pod ¶
type Pod struct {
Metadata *PodMetadata `yaml:"metadata"`
Status *PodStatus `yaml:"status"`
}
type PodMetadata ¶
type PodMetadata struct {
Uid string `yaml:"uid"`
}
Click to show internal directories.
Click to hide internal directories.