gcp

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cloud

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

func New

func New(ctx context.Context, options ...CloudOption) (*Cloud, error)

func (*Cloud) DaysDelay

func (c *Cloud) DaysDelay() int

func (*Cloud) MaxGroupBy

func (c *Cloud) MaxGroupBy() int

func (*Cloud) ParameterTitle

func (c *Cloud) ParameterTitle(id string, defaultValue string) string

func (*Cloud) Parameters

func (c *Cloud) Parameters() cloudcostexplorer.Parameters

func (*Cloud) QueryExtraOutput

type CloudOption

type CloudOption func(options *Cloud)

func WithDefaultTableName

func WithDefaultTableName(defaultTableName string) CloudOption

WithDefaultTableName sets the default bigQuery table name. The default value is "billing_export.gcp_billing_export_v1".

func WithProjectID

func WithProjectID(projectID string) CloudOption

WithProjectID sets the GCP project id.

func WithResourceTableName

func WithResourceTableName(resourceTableName string) CloudOption

WithResourceTableName sets the bigQuery table name containing resource names. The default value is "billing_export.gcp_billing_export_resource_v1".

type Label

type Label struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type LabelValue

type LabelValue struct {
	Labels []Label
	// contains filtered or unexported fields
}

LabelValue outputs a list of labels and their values.

func NewLabelValue

func NewLabelValue(paramName string, value string) *LabelValue

func (*LabelValue) Output

Jump to

Keyboard shortcuts

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