Documentation ¶
Index ¶
- func FillNodeCloudSpecificData(provider clouds.Name, nodeProfile profile.NodeProfile, config *steps.Config) error
- type AccountGetter
- type ClusterProvisioner
- type Handler
- type KubeGetter
- type KubeService
- type ProvisionRequest
- type ProvisionResponse
- type RateLimiter
- type TaskProvisioner
- func (tp *TaskProvisioner) Cancel(clusterID string) error
- func (tp *TaskProvisioner) ProvisionCluster(parentContext context.Context, profile *profile.Profile, config *steps.Config) (map[string][]*workflows.Task, error)
- func (tp *TaskProvisioner) ProvisionNodes(parentContext context.Context, nodeProfiles []profile.NodeProfile, ...) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FillNodeCloudSpecificData ¶
func FillNodeCloudSpecificData(provider clouds.Name, nodeProfile profile.NodeProfile, config *steps.Config) error
Fill cloud account specific data gets data from the map and puts to particular cloud provider config
Types ¶
type AccountGetter ¶
type ClusterProvisioner ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(kubeService KubeGetter, cloudAccountService *account.Service, provisioner ClusterProvisioner) *Handler
type KubeGetter ¶
type KubeService ¶
type ProvisionRequest ¶
type ProvisionResponse ¶
type RateLimiter ¶
type RateLimiter struct {
// contains filtered or unexported fields
}
func NewRateLimiter ¶
func NewRateLimiter(interval time.Duration) *RateLimiter
func (*RateLimiter) Take ¶
func (r *RateLimiter) Take()
Take either returns giving calling code ability to execute or blocks until bucket is full again
type TaskProvisioner ¶
type TaskProvisioner struct {
// contains filtered or unexported fields
}
func NewProvisioner ¶
func NewProvisioner(repository storage.Interface, kubeService KubeService, spawnInterval time.Duration) *TaskProvisioner
func (*TaskProvisioner) Cancel ¶
func (tp *TaskProvisioner) Cancel(clusterID string) error
func (*TaskProvisioner) ProvisionCluster ¶
func (tp *TaskProvisioner) ProvisionCluster(parentContext context.Context, profile *profile.Profile, config *steps.Config) (map[string][]*workflows.Task, error)
ProvisionCluster runs provisionCluster process among nodes that have been provided for provisionCluster
func (*TaskProvisioner) ProvisionNodes ¶
Click to show internal directories.
Click to hide internal directories.