Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrK8SConnectionError = errors.New("unable to connection the kubernetes API")
)
Functions ¶
func GenerateResourceID ¶ added in v0.1.71
func GenerateResourceID() string
GenerateResourceID creates a valid Kubernetes name from a UUID.
func GetNATPrefix ¶
GetNATPrefix returns the IP address of the SNAT that the control plane and by extension we, sit behind.
Types ¶
type DefaultK8SAPITester ¶
type DefaultK8SAPITester struct{}
func (*DefaultK8SAPITester) Connect ¶
func (t *DefaultK8SAPITester) Connect(ctx context.Context, config *clientcmdapi.Config) error
type K8SAPITester ¶
type K8SAPITester interface {
Connect(ctx context.Context, config *clientcmdapi.Config) error
}
type ServiceDescriptor ¶ added in v1.9.0
type ServiceDescriptor struct {
// Name is the name of the service.
Name string
// Version is the version of the service.
Version string
// Revision is the revision of the service (typically a Git SHA).
Revision string
}
ServiceDescriptor is used to define a common format for application information. This is typically used to initialize logging and IPC so we can see who instigated a request.
Click to show internal directories.
Click to hide internal directories.