Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface {
CreateNode(*kubernikus_v1.Kluster, *models.NodePool, []byte) (string, error)
DeleteNode(*kubernikus_v1.Kluster, string) error
GetNodes(*kubernikus_v1.Kluster, *models.NodePool) ([]Node, error)
GetProject(id string) (*Project, error)
GetRegion() (string, error)
GetRouters(project_id string) ([]Router, error)
DeleteUser(username, domainID string) error
CreateKlusterServiceUser(username, password, domain, defaultProjectID string) error
GetKubernikusCatalogEntry() (string, error)
GetSecurityGroupID(project_id, name string) (string, error)
}
func NewClient ¶
func NewClient(secrets typedv1.SecretInterface, klusterEvents cache.SharedIndexInformer, authURL, username, password, domain, project, projectDomain string, logger log.Logger) Client
type NameGenerator ¶ added in v1.5.0
type NameGenerator interface {
// GenerateName generates a valid name from the base name, adding a random suffix to the
// the base. If base is valid, the returned name must also be valid. The generator is
// responsible for knowing the maximum valid name length.
GenerateName(base string) string
}
var SimpleNameGenerator NameGenerator = simpleNameGenerator{}
SimpleNameGenerator is a generator that returns the name plus a random suffix of five alphanumerics when a name is requested. The string is guaranteed to not exceed the length of a standard Kubernetes name (63 characters)
Source Files
¶
- client.go
Click to show internal directories.
Click to hide internal directories.