bucket

package
v2.7.5 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const InfiniteRetention = 0

Variables

View Source
var ErrMustSpecifyOrgDeleteByName = fmt.Errorf("%s when deleting a bucket by name", clients.ErrMustSpecifyOrg)

Functions

This section is empty.

Types

type BucketsCreateParams

type BucketsCreateParams struct {
	clients.OrgParams
	Name               string
	Description        string
	Retention          string
	ShardGroupDuration string
	SchemaType         api.SchemaType
}

type BucketsDeleteParams

type BucketsDeleteParams struct {
	clients.OrgBucketParams
}

type BucketsListParams

type BucketsListParams struct {
	clients.OrgBucketParams
	Limit    int
	Offset   int
	PageSize int
}

type BucketsUpdateParams

type BucketsUpdateParams struct {
	clients.BucketParams
	Description        string
	Retention          string
	ShardGroupDuration string
}

type Client

type Client struct {
	clients.CLI
	api.OrganizationsApi
	api.BucketsApi
}

func (Client) Create

func (c Client) Create(ctx context.Context, params *BucketsCreateParams) error

func (Client) Delete

func (c Client) Delete(ctx context.Context, params *BucketsDeleteParams) error

func (Client) List

func (c Client) List(ctx context.Context, params *BucketsListParams) error

func (Client) Update

func (c Client) Update(ctx context.Context, params *BucketsUpdateParams) error

Jump to

Keyboard shortcuts

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