Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Workload ServiceWorkload `json:"workload" validate:"required"`
Gvc ServiceGvc `json:"gvc" validate:"required"`
}
Service is a single reachable workload in a service map (serviceMap.ts:14).
type ServiceGvc ¶
type ServiceGvc struct {
Name string `json:"name" validate:"required"`
Alias string `json:"alias" validate:"required"`
}
ServiceGvc is the inline `gvc` shape of Service (serviceMap.ts:23).
type ServiceMap ¶
type ServiceMap struct {
Outbound []Service `json:"outbound" validate:"required"`
LastUpdate string `json:"lastUpdate" validate:"date,required"`
OrgGvcAliases []string `json:"orgGvcAliases,omitzero"`
}
ServiceMap is the mTLS service-discovery map for a workload (serviceMap.ts:29).
type ServicePortMap ¶
type ServicePortMap struct {
ServicePort float64 `json:"servicePort" validate:"required"`
ContainerPort float64 `json:"containerPort" validate:"required"`
Protocol string `json:"protocol,omitzero" validate:"optional"`
}
ServicePortMap is a service-port to container-port mapping for a reachable workload (serviceMap.ts:3).
type ServiceReplica ¶
type ServiceReplica struct {
Location string `json:"location" validate:"required"`
Replicas float64 `json:"replicas" validate:"required"`
}
ServiceReplica is the per-location replica count for a replica-direct (stateful) workload (serviceMap.ts:9).
type ServiceWorkload ¶
type ServiceWorkload struct {
Name string `json:"name" validate:"required"`
CanonicalEndpoint string `json:"canonicalEndpoint" validate:"required"`
PortMap []ServicePortMap `json:"portMap" validate:"required"`
Type ServiceWorkloadType `json:"type" validate:"required"`
Replicas []ServiceReplica `json:"replicas,omitzero"`
AgentAccessible *bool `json:"agentAccessible,omitzero"`
// kata / scaleToZero landed on master while this port was branched
// (serviceMap.ts:22-27): kata serverless has no knative queue-proxy, and
// scale-to-zero ranks live pods above the standing activator entry.
Kata *bool `json:"kata,omitzero"`
ScaleToZero *bool `json:"scaleToZero,omitzero"`
Routing ServiceWorkloadRouting `json:"routing,omitzero"`
}
ServiceWorkload is the inline `workload` shape of Service (serviceMap.ts:15).
type ServiceWorkloadRouting ¶ added in v1.1.25
type ServiceWorkloadRouting string
const (
ServiceWorkloadRoutingGvcEndpoint ServiceWorkloadRouting = "gvcEndpoint"
)
func (ServiceWorkloadRouting) EnumValues ¶
func (ServiceWorkloadRouting) EnumValues() []string
type ServiceWorkloadType ¶
type ServiceWorkloadType string
ServiceWorkloadType is Service.workload.type's enum (serviceMap.ts:19).
const ( ServiceWorkloadTypeServerless ServiceWorkloadType = "serverless" ServiceWorkloadTypeStandard ServiceWorkloadType = "standard" ServiceWorkloadTypeCron ServiceWorkloadType = "cron" ServiceWorkloadTypeStateful ServiceWorkloadType = "stateful" ServiceWorkloadTypeVm ServiceWorkloadType = "vm" )
func (ServiceWorkloadType) EnumValues ¶
func (ServiceWorkloadType) EnumValues() []string
EnumValues ports serviceMap.ts:19 `.valid('serverless','standard','cron','stateful','vm')`. Without it the constants were decoration and any string passed.