Help us shape the future of Go! Take the 2026 Go Developer Survey

models

package
v1.20.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

View Source
const (

	// RemoteClusterConfigEndpointSlicesExportModeServicesDashAndDashEndpointslices captures enum value "services-and-endpointslices"
	RemoteClusterConfigEndpointSlicesExportModeServicesDashAndDashEndpointslices string = "services-and-endpointslices"

	// RemoteClusterConfigEndpointSlicesExportModeEndpointslicesDashOnly captures enum value "endpointslices-only"
	RemoteClusterConfigEndpointSlicesExportModeEndpointslicesDashOnly string = "endpointslices-only"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Metric

type Metric struct {

	// Labels of the metric
	Labels map[string]string `json:"labels,omitempty"`

	// Name of the metric
	Name string `json:"name,omitempty"`

	// Value of the metric
	Value float64 `json:"value,omitempty"`
}

Metric Metric information

swagger:model metric

func (*Metric) ContextValidate

func (m *Metric) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metric based on context it is used

func (*Metric) MarshalBinary

func (m *Metric) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metric) UnmarshalBinary

func (m *Metric) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metric) Validate

func (m *Metric) Validate(formats strfmt.Registry) error

Validate validates this metric

type RemoteClusterConfig added in v1.16.0

type RemoteClusterConfig struct {

	// The Cluster ID advertised by the remote cluster
	ClusterID int64 `json:"cluster-id,omitempty"`

	// EndpointSlices export mode advertised by the remote cluster
	// Enum: ["services-and-endpointslices","endpointslices-only"]
	EndpointSlicesExportMode string `json:"endpoint-slices-export-mode,omitempty"`

	// Whether the remote cluster information is locally cached by kvstoremesh
	Kvstoremesh bool `json:"kvstoremesh,omitempty"`

	// Whether the configuration is required to be present
	Required bool `json:"required,omitempty"`

	// Whether the configuration has been correctly retrieved
	Retrieved bool `json:"retrieved,omitempty"`

	// Whether or not MCS-API ServiceExports is enabled by the cluster (null means unsupported).
	ServiceExportsEnabled *bool `json:"service-exports-enabled,omitempty"`

	// Whether the remote cluster supports per-prefix "synced" canaries
	SyncCanaries bool `json:"sync-canaries,omitempty"`
}

RemoteClusterConfig Cluster configuration exposed by the remote cluster

+k8s:deepcopy-gen=true

swagger:model remoteClusterConfig

func (*RemoteClusterConfig) ContextValidate added in v1.16.0

func (m *RemoteClusterConfig) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this remote cluster config based on context it is used

func (*RemoteClusterConfig) DeepCopy added in v1.16.0

func (in *RemoteClusterConfig) DeepCopy() *RemoteClusterConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteClusterConfig.

func (*RemoteClusterConfig) DeepCopyInto added in v1.16.0

func (in *RemoteClusterConfig) DeepCopyInto(out *RemoteClusterConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RemoteClusterConfig) MarshalBinary added in v1.16.0

func (m *RemoteClusterConfig) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoteClusterConfig) UnmarshalBinary added in v1.16.0

func (m *RemoteClusterConfig) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoteClusterConfig) Validate added in v1.16.0

func (m *RemoteClusterConfig) Validate(formats strfmt.Registry) error

Validate validates this remote cluster config

type RemoteClusterSynced added in v1.16.0

type RemoteClusterSynced struct {

	// Endpoint slices synchronization status (null means that the component is not watching endpoint slices)
	EndpointSlices *bool `json:"endpoint-slices,omitempty"`

	// Endpoints synchronization status
	Endpoints bool `json:"endpoints,omitempty"`

	// Identities synchronization status
	Identities bool `json:"identities,omitempty"`

	// Nodes synchronization status
	Nodes bool `json:"nodes,omitempty"`

	// MCS-API service exports synchronization status (null means that the component is not watching service exports)
	ServiceExports *bool `json:"service-exports,omitempty"`

	// Services synchronization status
	Services bool `json:"services,omitempty"`
}

RemoteClusterSynced Status of the synchronization with the remote cluster, about each resource type. A given resource is considered to be synchronized if the initial list of entries has been completely received from the remote cluster, and new events are currently being watched.

+k8s:deepcopy-gen=true

swagger:model remoteClusterSynced

func (*RemoteClusterSynced) ContextValidate added in v1.16.0

func (m *RemoteClusterSynced) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this remote cluster synced based on context it is used

func (*RemoteClusterSynced) DeepCopy added in v1.16.0

func (in *RemoteClusterSynced) DeepCopy() *RemoteClusterSynced

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RemoteClusterSynced.

func (*RemoteClusterSynced) DeepCopyInto added in v1.16.0

func (in *RemoteClusterSynced) DeepCopyInto(out *RemoteClusterSynced)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*RemoteClusterSynced) MarshalBinary added in v1.16.0

func (m *RemoteClusterSynced) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*RemoteClusterSynced) UnmarshalBinary added in v1.16.0

func (m *RemoteClusterSynced) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*RemoteClusterSynced) Validate added in v1.16.0

func (m *RemoteClusterSynced) Validate(formats strfmt.Registry) error

Validate validates this remote cluster synced

Jump to

Keyboard shortcuts

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