console

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2021 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	Name    string
	Message string
	Status  string
	Total   int64
	// contains filtered or unexported fields
}

func (*Bar) SetTotal

func (b *Bar) SetTotal(total int64, triggerComplete bool)

type Client

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

Client console client is a wrapper around client.Client for console execution of CloudQuery

func CreateClient

func CreateClient(ctx context.Context, configPath string, opts ...client.Option) (*Client, error)

func CreateClientFromConfig

func CreateClientFromConfig(ctx context.Context, cfg *config.Config, opts ...client.Option) (*Client, error)

func (Client) Client

func (c Client) Client() *client.Client

func (Client) DowngradeProviders added in v0.14.5

func (c Client) DowngradeProviders(ctx context.Context, args []string) error

func (Client) DownloadPolicy added in v0.13.8

func (c Client) DownloadPolicy(ctx context.Context, args []string) error

func (Client) DownloadProviders

func (c Client) DownloadProviders(ctx context.Context) error

func (Client) DropProvider added in v0.14.5

func (c Client) DropProvider(ctx context.Context, providerName string) error

func (Client) Fetch

func (c Client) Fetch(ctx context.Context, failOnError bool) error

func (Client) RunPolicy added in v0.13.8

func (c Client) RunPolicy(ctx context.Context, args []string, subPath, outputPath string, stopOnFailure bool, skipVersioning bool) error

func (Client) UpgradeProviders added in v0.14.5

func (c Client) UpgradeProviders(ctx context.Context, args []string) error

type Progress

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

func NewProgress

func NewProgress(ctx context.Context, opts ...ProgressOption) *Progress

func (*Progress) AbortAll added in v0.14.5

func (u *Progress) AbortAll()

func (*Progress) Add

func (u *Progress) Add(name, displayName, message string, total int64)

func (*Progress) AttachReader

func (u *Progress) AttachReader(name string, data io.Reader) io.Reader

func (*Progress) GetBar

func (u *Progress) GetBar(name string) *Bar

func (*Progress) Increment

func (u *Progress) Increment(name string, n int)

func (*Progress) MarkAllDone added in v0.15.0

func (u *Progress) MarkAllDone()

func (*Progress) Update

func (u *Progress) Update(name, status, msg string, n int)

func (*Progress) Wait

func (u *Progress) Wait()

type ProgressOption

type ProgressOption func(o *ProgressOptions)

type ProgressOptions

type ProgressOptions struct {
	Filler           string
	StatusFunc       func(b *Bar, statistics decor.Statistics) string
	MessageHook      func(b *Bar, statistics decor.Statistics) string
	AppendDecorators []decor.Decorator
}

Jump to

Keyboard shortcuts

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