types

package
v1.4.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// HTTPS https protocol name
	HTTPS = "https"
	// HTTP http protocol name
	HTTP = "http"
	// Mysql mysql protocol name
	Mysql = "mysql"
	// Redis redis protocol name
	Redis = "redis"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppliedResource added in v1.3.0

type AppliedResource struct {
	Cluster         string    `json:"cluster"`
	Component       string    `json:"component"`
	Trait           string    `json:"trait"`
	Kind            string    `json:"kind"`
	Namespace       string    `json:"namespace,omitempty"`
	Name            string    `json:"name,omitempty"`
	UID             types.UID `json:"uid,omitempty"`
	APIVersion      string    `json:"apiVersion,omitempty"`
	ResourceVersion string    `json:"resourceVersion,omitempty"`
	DeployVersion   string    `json:"deployVersion,omitempty"`
	PublishVersion  string    `json:"publishVersion,omitempty"`
	Revision        string    `json:"revision,omitempty"`
	Latest          bool      `json:"latest"`
}

AppliedResource resource metadata

func (*AppliedResource) GroupVersionKind added in v1.3.0

func (obj *AppliedResource) GroupVersionKind() schema.GroupVersionKind

GroupVersionKind returns the stored group, version, and kind of an object

type Endpoint

type Endpoint struct {
	// The protocol for this endpoint. Supports "TCP", "UDP", and "SCTP".
	// Default is TCP.
	// +default="TCP"
	// +optional
	Protocol corev1.Protocol `json:"protocol,omitempty"`

	// The protocol for this endpoint.
	// Un-prefixed names are reserved for IANA standard service names (as per
	// RFC-6335 and http://www.iana.org/assignments/service-names).
	// +optional
	AppProtocol *string `json:"appProtocol,omitempty"`

	// the host for the endpoint, it could be IP or domain
	Host string `json:"host"`

	// the port for the endpoint
	// Default is 80.
	Port int `json:"port"`

	// the path for the endpoint
	Path string `json:"path,omitempty"`
}

Endpoint create by ingress or service

type ServiceEndpoint

type ServiceEndpoint struct {
	Endpoint  Endpoint               `json:"endpoint"`
	Ref       corev1.ObjectReference `json:"ref"`
	Cluster   string                 `json:"cluster"`
	Component string                 `json:"component"`
}

ServiceEndpoint record the access endpoints of the application services

func (*ServiceEndpoint) String

func (s *ServiceEndpoint) String() string

String return endpoint URL

Jump to

Keyboard shortcuts

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