deployer

package
v2.14.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchAvailablePermissionIDs added in v2.9.3

func FetchAvailablePermissionIDs(ctx context.Context, client *http.Client, url string) ([]string, error)

func NewClient added in v2.9.3

func NewClient(info account.AccountInfo, client *accounts.Client, supportedPermissions []remoteId) *accountManagementClient

func WithMaxConcurrentDeploys added in v2.10.0

func WithMaxConcurrentDeploys(maxConcurrentDeploys int) func(*AccountDeployer)

Types

type AccountDeployer added in v2.9.3

type AccountDeployer struct {
	// contains filtered or unexported fields
}

func NewAccountDeployer added in v2.9.3

func NewAccountDeployer(client client, opts ...func(*AccountDeployer)) *AccountDeployer

func (*AccountDeployer) Deploy added in v2.9.3

func (d *AccountDeployer) Deploy(res *account.Resources) error

type Dispatcher added in v2.10.0

type Dispatcher struct {
	// contains filtered or unexported fields
}

func NewDispatcher added in v2.10.0

func NewDispatcher(maxWorkers int) *Dispatcher

NewDispatcher creates a dispatcher that will use the specified amount of workers to dispatch its work loads. If maxWorkers is equal or less than 0, the dispatcher will dynamically create workers. Otherwise, there will be the specified fixed amount of workers available in the pool.

func (*Dispatcher) AddJob added in v2.10.0

func (d *Dispatcher) AddJob(j Runnable)

func (*Dispatcher) Run added in v2.10.0

func (d *Dispatcher) Run()

func (*Dispatcher) Stop added in v2.10.0

func (d *Dispatcher) Stop()

func (*Dispatcher) Wait added in v2.10.0

func (d *Dispatcher) Wait() error

type Group added in v2.9.3

type ManagementZone added in v2.9.3

type Options

type Options struct {
	DryRun bool
}

type Permissions added in v2.9.3

type Permissions = accountmanagement.PermissionsDto

type Policy added in v2.9.3

type Runnable added in v2.10.0

type Runnable func(group *sync.WaitGroup, errCh chan error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL