Documentation
¶
Index ¶
- func ParseAndDetect(policyPath string) (policy.Policies, error)
- type Bar
- type Client
- func (c Client) Close()
- func (c Client) ConvertRequiredToRegistry(providerName string) registry.Provider
- func (c Client) DescribePolicies(ctx context.Context, policySource string) error
- func (c Client) DownloadPolicy(ctx context.Context, args []string) (diags diag.Diagnostics)
- func (c Client) DownloadProviders(ctx context.Context) (diags diag.Diagnostics)
- func (c Client) DropProvider(ctx context.Context, providerName string) (diags diag.Diagnostics)
- func (c Client) Fetch(ctx context.Context) (*core.FetchResponse, diag.Diagnostics)
- func (c Client) PrunePolicyExecutions(ctx context.Context, retentionPeriod string) (diags diag.Diagnostics)
- func (c Client) RemoveStaleData(ctx context.Context, lastUpdate time.Duration, dryRun bool, providers []string) (diags diag.Diagnostics)
- func (c Client) RunPolicies(ctx context.Context, policySource, outputDir string, ...) (diags diag.Diagnostics)
- func (c Client) SnapshotPolicy(ctx context.Context, policySource, snapshotDestination string) error
- func (c Client) SyncProviders(ctx context.Context, pp ...string) (results []*core.SyncResult, diags diag.Diagnostics)
- func (c Client) TestPolicies(ctx context.Context, policySource, snapshotDestination string) error
- func (c Client) ValidatePolicy(ctx context.Context, policySource string) (diags diag.Diagnostics)
- type ModuleCallRequest
- type Progress
- func (u *Progress) AbortAll()
- func (u *Progress) Add(name, displayName, message string, total int64)
- func (u *Progress) AttachReader(name string, data io.Reader) io.Reader
- func (u *Progress) GetBar(name string) *Bar
- func (u *Progress) Increment(name string, n int)
- func (u *Progress) MarkAllDone()
- func (u *Progress) Update(name, status, msg string, n int)
- func (u *Progress) Wait()
- type ProgressOption
- type ProgressOptions
- type Table
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Bar ¶
type Client ¶
type Client struct {
Providers registry.Providers
Registry registry.Registry
PluginManager *plugin.Manager
Storage database.Storage
StateManager *state.Client
// contains filtered or unexported fields
}
Client console client is a wrapper around core.Client for console execution of CloudQuery
func CreateClient ¶
func CreateClientFromConfig ¶
func (Client) ConvertRequiredToRegistry ¶ added in v0.23.0
func (Client) DescribePolicies ¶ added in v0.17.0
func (Client) DownloadPolicy ¶ added in v0.13.8
func (Client) DownloadProviders ¶
func (c Client) DownloadProviders(ctx context.Context) (diags diag.Diagnostics)
func (Client) DropProvider ¶ added in v0.14.5
func (Client) Fetch ¶
func (c Client) Fetch(ctx context.Context) (*core.FetchResponse, diag.Diagnostics)
func (Client) PrunePolicyExecutions ¶ added in v0.24.1
func (Client) RemoveStaleData ¶ added in v0.22.3
func (Client) RunPolicies ¶ added in v0.16.0
func (Client) SnapshotPolicy ¶ added in v0.21.0
func (Client) SyncProviders ¶ added in v0.23.0
func (c Client) SyncProviders(ctx context.Context, pp ...string) (results []*core.SyncResult, diags diag.Diagnostics)
func (Client) TestPolicies ¶ added in v0.21.0
func (Client) ValidatePolicy ¶ added in v0.23.3
type ModuleCallRequest ¶ added in v0.15.10
type ModuleCallRequest struct {
// Name of the module
Name string
// Params are the invocation parameters specific to the module
Params interface{}
// Profile is the selected/overridden name of the profile
Profile string
// OutputPath is the filename to save output to
OutputPath string
}
ModuleCallRequest is the request used to call a module.
type Progress ¶
type Progress struct {
// contains filtered or unexported fields
}
func NewProgress ¶
func NewProgress(ctx context.Context, opts ...ProgressOption) *Progress
func (*Progress) AttachReader ¶
func (*Progress) MarkAllDone ¶ added in v0.15.0
func (u *Progress) MarkAllDone()
type ProgressOption ¶
type ProgressOption func(o *ProgressOptions)
type ProgressOptions ¶
type Table ¶ added in v0.17.0
type Table struct {
// contains filtered or unexported fields
}
func (Table) SetHeaders ¶ added in v0.17.0
Click to show internal directories.
Click to hide internal directories.