providers

package
v0.0.0-...-c77f481 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseProvider

type BaseProvider struct {
	Name     string
	Type     ProviderType
	Supplier supplier.Supplier
	WG       *sync.WaitGroup
	Wait     bool
}

type Provider

type Provider interface {
	Data() *BaseProvider
	Run()
	Wait()
	Resume()
	Status() *status.Status
	Terminate() error
	DeleteFile()
}

type ProviderType

type ProviderType int
const (
	Aws ProviderType = iota
	Google
	Oracle
	Azure
	IBM
	Local
	OnPremise
)

func (ProviderType) Name

func (p ProviderType) Name() string

type Providers

type Providers struct {
	Remotes       []*Provider
	Locals        []*Provider
	All           []*Provider
	Statuses      []*status.Status
	Length        int
	HasRemote     bool
	HasLocal      bool
	HasValidation bool

	Filename *string
	// contains filtered or unexported fields
}

TODO use single loop instead for each method

func (*Providers) Delete

func (providers *Providers) Delete()

func (*Providers) HasError

func (providers *Providers) HasError() bool

func (*Providers) HasMismatch

func (providers *Providers) HasMismatch(checksum string) bool

func (*Providers) IsRunning

func (providers *Providers) IsRunning() bool

func (*Providers) ResumeLocals

func (providers *Providers) ResumeLocals()

func (*Providers) Run

func (providers *Providers) Run()

func (*Providers) RunLocals

func (providers *Providers) RunLocals()

func (*Providers) RunRemotes

func (providers *Providers) RunRemotes()

func (*Providers) Status

func (providers *Providers) Status() []*status.Status

func (*Providers) SuspendLocals

func (providers *Providers) SuspendLocals()

func (*Providers) Terminate

func (providers *Providers) Terminate(force bool)

Jump to

Keyboard shortcuts

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