Documentation ¶
Index ¶
- type Cloud
- func (c *Cloud) DaysDelay() int
- func (c *Cloud) MaxGroupBy() int
- func (c *Cloud) ParameterTitle(id string, defaultValue string) string
- func (c *Cloud) Parameters() cloudcostexplorer.Parameters
- func (c *Cloud) Query(ctx context.Context, options ...cloudcostexplorer.QueryOption) iter.Seq2[cloudcostexplorer.CloudQueryItem, error]
- func (c *Cloud) QueryExtraOutput(ctx context.Context, extraData []cloudcostexplorer.QueryExtraData) cloudcostexplorer.QueryExtraOutput
- type CloudOption
- type Label
- type LabelValue
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 (*Cloud) MaxGroupBy ¶
func (*Cloud) ParameterTitle ¶
func (*Cloud) Parameters ¶
func (c *Cloud) Parameters() cloudcostexplorer.Parameters
func (*Cloud) Query ¶
func (c *Cloud) Query(ctx context.Context, options ...cloudcostexplorer.QueryOption) iter.Seq2[cloudcostexplorer.CloudQueryItem, error]
func (*Cloud) QueryExtraOutput ¶
func (c *Cloud) QueryExtraOutput(ctx context.Context, extraData []cloudcostexplorer.QueryExtraData) cloudcostexplorer.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 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 ¶
func (o *LabelValue) Output(ctx context.Context, vctx cloudcostexplorer.ValueContext, uq *cloudcostexplorer.URLQuery) (string, error)
Click to show internal directories.
Click to hide internal directories.