servicediscovery

package
v0.0.0-...-bb2f907 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAppContext

func CreateAppContext(ctx context.Context, intentName, appContextID string) error

CreateAppContext Action applies the supplied intent against the given AppContext ID

func DeployServiceEntry

func DeployServiceEntry(ctx context.Context, ac appcontext.AppContext, appContextID string, serverName string, clientName string, serviceName string) error

DeployServiceEntry deploys service entry related resources on clusters

Types

type EndpointResource

type EndpointResource struct {
	APIVersion string                  `yaml:"apiVersion"`
	Kind       string                  `yaml:"kind"`
	MetaData   metav1.ObjectMeta       `yaml:"metadata"`
	Subsets    []corev1.EndpointSubset `yaml:"subsets,omitempty"`
}

EndpointResource defines the endpoint k8s object

type ServiceResource

type ServiceResource struct {
	APIVersion    string            `yaml:"apiVersion"`
	Kind          string            `yaml:"kind"`
	MetaData      metav1.ObjectMeta `yaml:"metadata"`
	Specification Specs             `yaml:"spec,omitempty"`
}

ServiceResource defines the service k8s object

type Specs

type Specs struct {
	ClusterIP       string               `yaml:"clusterIP,omitempty"`
	Ports           []corev1.ServicePort `yaml:"ports,omitempty"`
	SessionAffinity string               `yaml:"sessionAffinity,omitempty"`
	Types           corev1.ServiceType   `yaml:"type,omitempty"`
}

Specs defines the service spec

Jump to

Keyboard shortcuts

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