Documentation ¶
Index ¶
- Variables
- func AllHostnamesOfManifestGroup(mgroup manifest.Group) []string
- func ApplyToContext(ctx context.Context, config map[interface{}]interface{}) context.Context
- func ComputeCommittedResources(factor float64, rv atypes.ResourceValue) atypes.ResourceValue
- func ExposeExternalPort(expose manifest.ServiceExpose) int32
- func GetEndpointQuantityOfResourceGroup(resources atypes.ResourceGroup, kind atypes.Endpoint_Kind) uint
- func GetEndpointQuantityOfResourceUnits(r atypes.ResourceUnits, kind atypes.Endpoint_Kind) uint
- func IngressHost(lid mtypes.LeaseID, svcName string) string
- func IsInsideKubernetes() (bool, error)
- func LeaseIDToNamespace(lid mtypes.LeaseID) string
- func MakeIPSharingKey(lID mtypes.LeaseID, endpointName string) string
- func ShouldBeIngress(expose manifest.ServiceExpose) bool
- type ServiceClient
- type ServiceDiscoveryAgent
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrShuttingDown = errors.New("shutting down")
)
Functions ¶
func AllHostnamesOfManifestGroup ¶ added in v0.9.3
func ApplyToContext ¶ added in v0.14.0
func ComputeCommittedResources ¶ added in v0.9.3
func ComputeCommittedResources(factor float64, rv atypes.ResourceValue) atypes.ResourceValue
func ExposeExternalPort ¶
func ExposeExternalPort(expose manifest.ServiceExpose) int32
func GetEndpointQuantityOfResourceGroup ¶
func GetEndpointQuantityOfResourceGroup(resources atypes.ResourceGroup, kind atypes.Endpoint_Kind) uint
func GetEndpointQuantityOfResourceUnits ¶
func GetEndpointQuantityOfResourceUnits(r atypes.ResourceUnits, kind atypes.Endpoint_Kind) uint
func IsInsideKubernetes ¶
func LeaseIDToNamespace ¶ added in v0.14.0
LeaseIDToNamespace generates a unique sha256 sum for identifying a provider's object name.
func ShouldBeIngress ¶
func ShouldBeIngress(expose manifest.ServiceExpose) bool
Types ¶
type ServiceClient ¶
type ServiceDiscoveryAgent ¶
type ServiceDiscoveryAgent interface { Stop() GetClient(ctx context.Context, isHTTPS, secure bool) (ServiceClient, error) DiscoverNow() }
Click to show internal directories.
Click to hide internal directories.