config

package
v2.9.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

+kubebuilder:validation:Optional +kubebuilder:object:generate=true

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entity added in v2.6.0

type Entity struct {
	// Unique identifier of the entity.
	UID string `json:"uid,omitempty" validate:"required"` // @gotags: validate:"required"
	// IP address of the entity.
	IPAddress string `json:"ip_address,omitempty" validate:"required,ip"` // @gotags: validate:"required,ip"
	// Name of the entity. For example, pod name.
	Name string `json:"name,omitempty"`
	// Namespace of the entity. For example, pod namespace.
	Namespace string `json:"namespace,omitempty"`
	// Node name of the entity. For example, hostname.
	NodeName string ` json:"node_name,omitempty"`
	// Services of the entity.
	Services []string `json:"services,omitempty" validate:"gt=0"` // @gotags: validate:"gt=0"
}

Entity represents a pod, VM, and so on.

func (*Entity) DeepCopy added in v2.6.0

func (in *Entity) DeepCopy() *Entity

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

func (*Entity) DeepCopyInto added in v2.6.0

func (in *Entity) DeepCopyInto(out *Entity)

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

type StaticDiscoveryConfig

type StaticDiscoveryConfig struct {
	Entities []Entity `json:"entities,omitempty"`
}

StaticDiscoveryConfig for pre-determined list of services. swagger:model

func (*StaticDiscoveryConfig) DeepCopy

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

func (*StaticDiscoveryConfig) DeepCopyInto

func (in *StaticDiscoveryConfig) DeepCopyInto(out *StaticDiscoveryConfig)

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

Jump to

Keyboard shortcuts

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