Documentation
¶
Index ¶
- func MetaDataFile() string
- func ReadCellImageYaml(repo, cellImage string) ([]byte, error)
- func ValidateImageTag(imageTag string) error
- func ValidateImageTagWithRegistry(imageTag string) error
- type Cell
- type CellAnnotations
- type CellImage
- type CellImageName
- type CellMetaData
- type CellSpec
- type CellStatus
- type ClusterIngress
- type Component
- type ComponentDependencies
- type ComponentMetaData
- type ComponentMetadata
- type ComponentPort
- type ComponentSpec
- type Destination
- type Extensions
- type Gateway
- type GatewaySpec
- type GrpcIngress
- type HttpIngress
- type Ingress
- type MetaData
- type TcpIngress
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MetaDataFile ¶
func MetaDataFile() string
func ReadCellImageYaml ¶ added in v0.3.0
func ValidateImageTag ¶ added in v0.4.0
ValidateImageTag validates the image tag (without the registry in it).
func ValidateImageTagWithRegistry ¶ added in v0.4.0
ValidateImageTag validates the image tag (with the registry in it). The registry is an option element in this validation.
Types ¶
type Cell ¶ added in v0.4.0
type Cell struct {
Kind string `json:"kind"`
MetaData CellMetaData `json:"metadata"`
Spec CellSpec `json:"spec"`
Status CellStatus `json:"status"`
}
type CellAnnotations ¶ added in v0.4.0
type CellImage ¶ added in v0.4.0
func ParseImageTag ¶ added in v0.4.0
ParseImageTag parses the given image name string and returns a CellImage struct with the relevant information.
type CellImageName ¶ added in v0.4.0
type CellMetaData ¶ added in v0.4.0
type CellMetaData struct {
CreationTimestamp string `json:"creationTimestamp"`
Annotations CellAnnotations `json:"annotations"`
Name string `json:"name"`
}
type CellStatus ¶ added in v0.4.0
type ClusterIngress ¶ added in v0.4.0
type ClusterIngress struct {
Host string `json:"host"`
}
type Component ¶ added in v0.4.0
type Component struct {
Metadata ComponentMetadata `json:"metadata"`
Spec ComponentSpec `json:"spec"`
}
type ComponentDependencies ¶ added in v0.4.0
type ComponentMetaData ¶ added in v0.4.0
type ComponentMetadata ¶ added in v0.4.0
type ComponentMetadata struct {
Name string `json:"name"`
}
type ComponentPort ¶ added in v0.4.0
type ComponentSpec ¶ added in v0.4.0
type ComponentSpec struct {
Ports []ComponentPort `json:"ports"`
}
type Destination ¶ added in v0.4.0
type Destination struct {
Host string `json:"host"`
}
type Extensions ¶ added in v0.4.0
type Extensions struct {
ClusterIngress ClusterIngress `json:"clusterIngress"`
}
type Gateway ¶ added in v0.4.0
type Gateway struct {
Spec GatewaySpec `json:"spec"`
}
type GatewaySpec ¶ added in v0.4.0
type GatewaySpec struct {
Ingress Ingress `json:"ingress"`
}
type GrpcIngress ¶ added in v0.4.0
type GrpcIngress struct {
Port int `json:"port"`
Destination Destination `json:"destination"`
}
type HttpIngress ¶ added in v0.4.0
type HttpIngress struct {
Context string `json:"context"`
Version string `json:"version"`
Global bool `json:"global"`
Port int `json:"port"`
Destination Destination `json:"destination"`
}
type Ingress ¶ added in v0.4.0
type Ingress struct {
Extensions Extensions `json:"extensions"`
HTTP []HttpIngress `json:"http"`
GRPC []GrpcIngress `json:"grpc"`
TCP []TcpIngress `json:"tcp"`
}
type MetaData ¶ added in v0.4.0
type MetaData struct {
CellImageName
SchemaVersion string `json:"schemaVersion"`
Kind string `json:"kind"`
Components map[string]*ComponentMetaData `json:"components"`
BuildTimestamp int64 `json:"buildTimestamp"`
BuildCelleryVersion string `json:"buildCelleryVersion"`
ZeroScalingRequired bool `json:"zeroScalingRequired"`
AutoScalingRequired bool `json:"autoScalingRequired"`
}
func ReadMetaData ¶
type TcpIngress ¶ added in v0.4.0
type TcpIngress struct {
Port int `json:"port"`
Destination Destination `json:"destination"`
}
Click to show internal directories.
Click to hide internal directories.