types

package
v1.5.0-alpha.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 6 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"`
	ResourceTree    *ResourceTreeNode `json:"resourceTree,omitempty"`
}

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 HealthStatus added in v1.4.0

type HealthStatus struct {
	Status  HealthStatusCode `json:"statusCode"`
	Reason  string           `json:"reason"`
	Message string           `json:"message"`
}

HealthStatus the resource health status

type HealthStatusCode added in v1.4.0

type HealthStatusCode string

HealthStatusCode Represents resource health status

const (
	// HealthStatusHealthy  resource is healthy
	HealthStatusHealthy HealthStatusCode = "Healthy"
	// HealthStatusUnHealthy resource is unhealthy
	HealthStatusUnHealthy HealthStatusCode = "UnHealthy"
	// HealthStatusProgressing resource is still progressing
	HealthStatusProgressing HealthStatusCode = "Progressing"
	// HealthStatusUnKnown health status is unknown
	HealthStatusUnKnown HealthStatusCode = "UnKnown"
)

type ResourceTreeNode added in v1.4.0

type ResourceTreeNode struct {
	Cluster           string                 `json:"cluster"`
	APIVersion        string                 `json:"apiVersion,omitempty"`
	Kind              string                 `json:"kind"`
	Namespace         string                 `json:"namespace,omitempty"`
	Name              string                 `json:"name,omitempty"`
	UID               types.UID              `json:"uid,omitempty"`
	HealthStatus      HealthStatus           `json:"healthStatus,omitempty"`
	DeletionTimestamp time.Time              `json:"deletionTimestamp,omitempty"`
	CreationTimestamp time.Time              `json:"creationTimestamp,omitempty"`
	LeafNodes         []*ResourceTreeNode    `json:"leafNodes,omitempty"`
	AdditionalInfo    map[string]interface{} `json:"additionalInfo,omitempty"`
}

ResourceTreeNode is the tree node of every resource

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