Documentation
¶
Index ¶
Constants ¶
View Source
const (
Name = "usage-gcs"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GCSStorage ¶
type GCSStorage struct {
*common.BaseStorage
// contains filtered or unexported fields
}
GCSStorage implements the StorageBackend interface for GCS
func NewGCSStorage ¶
func NewGCSStorage(ctx context.Context, logger logrus.FieldLogger, metrics *common.Metrics) (*GCSStorage, error)
NewGCSStorage creates a new GCS storage backend
func (*GCSStorage) UpdateConfig ¶
func (g *GCSStorage) UpdateConfig(config common.StorageConfig) (bool, error)
UpdateConfig updates the backend configuration from the provided config
func (*GCSStorage) UploadUsageData ¶
UploadUsageData uploads the usage data to the storage backend
func (*GCSStorage) VerifyPermissions ¶
func (g *GCSStorage) VerifyPermissions(ctx context.Context) error
VerifyPermissions checks if the backend can access the storage location
Click to show internal directories.
Click to hide internal directories.