cloudscale

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccumulateKey

type AccumulateKey struct {
	Query     string
	Zone      string
	Tenant    string
	Namespace string
	Start     time.Time
}

AccumulateKey represents one data point ("fact") in the billing database. The actual value for the data point is not present in this type, as this type is just a map key, and the corresponding value is stored as a map value.

func (AccumulateKey) MarshalText

func (k AccumulateKey) MarshalText() ([]byte, error)

MarshalText implements encoding.TextMarshaler to be able to e.g. log the map with this key type.

func (AccumulateKey) String

func (k AccumulateKey) String() string

String returns the full "source" string as used by the appuio-cloud-reporting

type ObjectStorage

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

func NewObjectStorage

func NewObjectStorage(client *cloudscale.Client, k8sClient client.Client, databaseURL string, billingDate time.Time) (*ObjectStorage, error)

func (*ObjectStorage) Execute

func (obj *ObjectStorage) Execute(ctx context.Context) error

Jump to

Keyboard shortcuts

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