model

package
v0.57.3 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

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 K8sTargetRef struct {
	Kind      string `yaml:"kind"`
	Name      string `yaml:"name"`
	Namespace string `yaml:"namespace"`
	Uid       string `yaml:"uid"`
}

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

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 OwnerReference struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`
	Name       string `yaml:"name"`
	UID        string `yaml:"uid"`
}

type Pod

type Pod struct {
	Metadata *PodMetadata `yaml:"metadata"`
	Status   *PodStatus   `yaml:"status"`
}

type PodIP

type PodIP struct {
	IP string `yaml:"ip"`
}

type PodMetadata

type PodMetadata struct {
	Uid string `yaml:"uid"`
}

type PodStatus

type PodStatus struct {
	HostIP string   `yaml:"hostIP"`
	PodIP  string   `yaml:"podIP"`
	PodIPs []*PodIP `yaml:"podIPs"`
}

Directories

Path Synopsis
history
khifile
v6
Package khifilev6 provides models and utilities for KHI file format version 6.
Package khifilev6 provides models and utilities for KHI file format version 6.

Jump to

Keyboard shortcuts

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