buckets

package
v0.0.0-...-6850833 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_yamcs_protobuf_buckets_buckets_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type BucketInfo

type BucketInfo struct {

	// Bucket name.
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Total size in bytes of all objects in the bucket (metadata is not counted)
	Size *uint64 `protobuf:"varint,2,opt,name=size" json:"size,omitempty"`
	// Number of objects in the bucket
	NumObjects *uint32 `protobuf:"varint,3,opt,name=numObjects" json:"numObjects,omitempty"`
	// Maximum allowed total size of all objects
	MaxSize *uint64 `protobuf:"varint,4,opt,name=maxSize" json:"maxSize,omitempty"`
	// Maximum allowed number of objects
	MaxObjects *uint32 `protobuf:"varint,5,opt,name=maxObjects" json:"maxObjects,omitempty"`
	// Creation time of this bucket
	Created *timestamp.Timestamp `protobuf:"bytes,6,opt,name=created" json:"created,omitempty"`
	// Bucket root directory. This field is only set when the
	// bucket is mapped to the file system. Therefore it is not
	// set for buckets that store objects in RocksDB.
	Directory *string `protobuf:"bytes,7,opt,name=directory" json:"directory,omitempty"`
	// contains filtered or unexported fields
}

func (*BucketInfo) Descriptor deprecated

func (*BucketInfo) Descriptor() ([]byte, []int)

Deprecated: Use BucketInfo.ProtoReflect.Descriptor instead.

func (*BucketInfo) GetCreated

func (x *BucketInfo) GetCreated() *timestamp.Timestamp

func (*BucketInfo) GetDirectory

func (x *BucketInfo) GetDirectory() string

func (*BucketInfo) GetMaxObjects

func (x *BucketInfo) GetMaxObjects() uint32

func (*BucketInfo) GetMaxSize

func (x *BucketInfo) GetMaxSize() uint64

func (*BucketInfo) GetName

func (x *BucketInfo) GetName() string

func (*BucketInfo) GetNumObjects

func (x *BucketInfo) GetNumObjects() uint32

func (*BucketInfo) GetSize

func (x *BucketInfo) GetSize() uint64

func (*BucketInfo) ProtoMessage

func (*BucketInfo) ProtoMessage()

func (*BucketInfo) ProtoReflect

func (x *BucketInfo) ProtoReflect() protoreflect.Message

func (*BucketInfo) Reset

func (x *BucketInfo) Reset()

func (*BucketInfo) String

func (x *BucketInfo) String() string

type CreateBucketRequest

type CreateBucketRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// Bucket name.
	Name *string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateBucketRequest) Descriptor deprecated

func (*CreateBucketRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateBucketRequest.ProtoReflect.Descriptor instead.

func (*CreateBucketRequest) GetInstance

func (x *CreateBucketRequest) GetInstance() string

func (*CreateBucketRequest) GetName

func (x *CreateBucketRequest) GetName() string

func (*CreateBucketRequest) ProtoMessage

func (*CreateBucketRequest) ProtoMessage()

func (*CreateBucketRequest) ProtoReflect

func (x *CreateBucketRequest) ProtoReflect() protoreflect.Message

func (*CreateBucketRequest) Reset

func (x *CreateBucketRequest) Reset()

func (*CreateBucketRequest) String

func (x *CreateBucketRequest) String() string

type DeleteBucketRequest

type DeleteBucketRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// Bucket name.
	BucketName *string `protobuf:"bytes,2,opt,name=bucketName" json:"bucketName,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteBucketRequest) Descriptor deprecated

func (*DeleteBucketRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteBucketRequest.ProtoReflect.Descriptor instead.

func (*DeleteBucketRequest) GetBucketName

func (x *DeleteBucketRequest) GetBucketName() string

func (*DeleteBucketRequest) GetInstance

func (x *DeleteBucketRequest) GetInstance() string

func (*DeleteBucketRequest) ProtoMessage

func (*DeleteBucketRequest) ProtoMessage()

func (*DeleteBucketRequest) ProtoReflect

func (x *DeleteBucketRequest) ProtoReflect() protoreflect.Message

func (*DeleteBucketRequest) Reset

func (x *DeleteBucketRequest) Reset()

func (*DeleteBucketRequest) String

func (x *DeleteBucketRequest) String() string

type DeleteObjectRequest

type DeleteObjectRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// Bucket name.
	BucketName *string `protobuf:"bytes,2,opt,name=bucketName" json:"bucketName,omitempty"`
	// Object name.
	ObjectName *string `protobuf:"bytes,3,opt,name=objectName" json:"objectName,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteObjectRequest) Descriptor deprecated

func (*DeleteObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use DeleteObjectRequest.ProtoReflect.Descriptor instead.

func (*DeleteObjectRequest) GetBucketName

func (x *DeleteObjectRequest) GetBucketName() string

func (*DeleteObjectRequest) GetInstance

func (x *DeleteObjectRequest) GetInstance() string

func (*DeleteObjectRequest) GetObjectName

func (x *DeleteObjectRequest) GetObjectName() string

func (*DeleteObjectRequest) ProtoMessage

func (*DeleteObjectRequest) ProtoMessage()

func (*DeleteObjectRequest) ProtoReflect

func (x *DeleteObjectRequest) ProtoReflect() protoreflect.Message

func (*DeleteObjectRequest) Reset

func (x *DeleteObjectRequest) Reset()

func (*DeleteObjectRequest) String

func (x *DeleteObjectRequest) String() string

type GetBucketRequest

type GetBucketRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// Bucket name.
	BucketName *string `protobuf:"bytes,2,opt,name=bucketName" json:"bucketName,omitempty"`
	// contains filtered or unexported fields
}

func (*GetBucketRequest) Descriptor deprecated

func (*GetBucketRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetBucketRequest.ProtoReflect.Descriptor instead.

func (*GetBucketRequest) GetBucketName

func (x *GetBucketRequest) GetBucketName() string

func (*GetBucketRequest) GetInstance

func (x *GetBucketRequest) GetInstance() string

func (*GetBucketRequest) ProtoMessage

func (*GetBucketRequest) ProtoMessage()

func (*GetBucketRequest) ProtoReflect

func (x *GetBucketRequest) ProtoReflect() protoreflect.Message

func (*GetBucketRequest) Reset

func (x *GetBucketRequest) Reset()

func (*GetBucketRequest) String

func (x *GetBucketRequest) String() string

type GetObjectRequest

type GetObjectRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// Bucket name.
	BucketName *string `protobuf:"bytes,2,opt,name=bucketName" json:"bucketName,omitempty"`
	// Object name.
	ObjectName *string `protobuf:"bytes,3,opt,name=objectName" json:"objectName,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectRequest) Descriptor deprecated

func (*GetObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetObjectRequest.ProtoReflect.Descriptor instead.

func (*GetObjectRequest) GetBucketName

func (x *GetObjectRequest) GetBucketName() string

func (*GetObjectRequest) GetInstance

func (x *GetObjectRequest) GetInstance() string

func (*GetObjectRequest) GetObjectName

func (x *GetObjectRequest) GetObjectName() string

func (*GetObjectRequest) ProtoMessage

func (*GetObjectRequest) ProtoMessage()

func (*GetObjectRequest) ProtoReflect

func (x *GetObjectRequest) ProtoReflect() protoreflect.Message

func (*GetObjectRequest) Reset

func (x *GetObjectRequest) Reset()

func (*GetObjectRequest) String

func (x *GetObjectRequest) String() string

type ListBucketsRequest

type ListBucketsRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBucketsRequest) Descriptor deprecated

func (*ListBucketsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListBucketsRequest.ProtoReflect.Descriptor instead.

func (*ListBucketsRequest) GetInstance

func (x *ListBucketsRequest) GetInstance() string

func (*ListBucketsRequest) ProtoMessage

func (*ListBucketsRequest) ProtoMessage()

func (*ListBucketsRequest) ProtoReflect

func (x *ListBucketsRequest) ProtoReflect() protoreflect.Message

func (*ListBucketsRequest) Reset

func (x *ListBucketsRequest) Reset()

func (*ListBucketsRequest) String

func (x *ListBucketsRequest) String() string

type ListBucketsResponse

type ListBucketsResponse struct {
	Buckets []*BucketInfo `protobuf:"bytes,1,rep,name=buckets" json:"buckets,omitempty"`
	// contains filtered or unexported fields
}

func (*ListBucketsResponse) Descriptor deprecated

func (*ListBucketsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListBucketsResponse.ProtoReflect.Descriptor instead.

func (*ListBucketsResponse) GetBuckets

func (x *ListBucketsResponse) GetBuckets() []*BucketInfo

func (*ListBucketsResponse) ProtoMessage

func (*ListBucketsResponse) ProtoMessage()

func (*ListBucketsResponse) ProtoReflect

func (x *ListBucketsResponse) ProtoReflect() protoreflect.Message

func (*ListBucketsResponse) Reset

func (x *ListBucketsResponse) Reset()

func (*ListBucketsResponse) String

func (x *ListBucketsResponse) String() string

type ListObjectsRequest

type ListObjectsRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// Bucket name.
	BucketName *string `protobuf:"bytes,2,opt,name=bucketName" json:"bucketName,omitempty"`
	// Return only objects whose name do not contain the delimiter after the
	// prefix. For the other objects, the response contains (in the prefix
	// response parameter) the name truncated after the delimiter. Duplicates
	// are omitted.
	//
	// Together with “prefix“ this parameter provides filtering capabilities.
	// These work similar to Google Cloud Storage and Amazon S3.
	//
	// The “delimiter“ allows the list to work in a directory mode despite
	// the object namespace being flat. For example if the delimiter is set to
	// "/", then listing the bucket containing objects "a/b", "a/c", "d", "e"
	// and "e/f" returns objects "d" and "e" and prefixes "a/" and "e/".
	Delimiter *string `protobuf:"bytes,3,opt,name=delimiter" json:"delimiter,omitempty"`
	// List only objects whose name start with prefix
	Prefix *string `protobuf:"bytes,4,opt,name=prefix" json:"prefix,omitempty"`
	// contains filtered or unexported fields
}

func (*ListObjectsRequest) Descriptor deprecated

func (*ListObjectsRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListObjectsRequest.ProtoReflect.Descriptor instead.

func (*ListObjectsRequest) GetBucketName

func (x *ListObjectsRequest) GetBucketName() string

func (*ListObjectsRequest) GetDelimiter

func (x *ListObjectsRequest) GetDelimiter() string

func (*ListObjectsRequest) GetInstance

func (x *ListObjectsRequest) GetInstance() string

func (*ListObjectsRequest) GetPrefix

func (x *ListObjectsRequest) GetPrefix() string

func (*ListObjectsRequest) ProtoMessage

func (*ListObjectsRequest) ProtoMessage()

func (*ListObjectsRequest) ProtoReflect

func (x *ListObjectsRequest) ProtoReflect() protoreflect.Message

func (*ListObjectsRequest) Reset

func (x *ListObjectsRequest) Reset()

func (*ListObjectsRequest) String

func (x *ListObjectsRequest) String() string

type ListObjectsResponse

type ListObjectsResponse struct {

	// Object name prefixes for objects that matched the request but were
	// excluded forom “objects“ because of a delimiter.
	Prefixes []string `protobuf:"bytes,1,rep,name=prefixes" json:"prefixes,omitempty"`
	// The list of objects.
	Objects []*ObjectInfo `protobuf:"bytes,2,rep,name=objects" json:"objects,omitempty"`
	// contains filtered or unexported fields
}

func (*ListObjectsResponse) Descriptor deprecated

func (*ListObjectsResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListObjectsResponse.ProtoReflect.Descriptor instead.

func (*ListObjectsResponse) GetObjects

func (x *ListObjectsResponse) GetObjects() []*ObjectInfo

func (*ListObjectsResponse) GetPrefixes

func (x *ListObjectsResponse) GetPrefixes() []string

func (*ListObjectsResponse) ProtoMessage

func (*ListObjectsResponse) ProtoMessage()

func (*ListObjectsResponse) ProtoReflect

func (x *ListObjectsResponse) ProtoReflect() protoreflect.Message

func (*ListObjectsResponse) Reset

func (x *ListObjectsResponse) Reset()

func (*ListObjectsResponse) String

func (x *ListObjectsResponse) String() string

type ObjectInfo

type ObjectInfo struct {

	// Object name
	Name *string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
	// Creation time
	Created *timestamp.Timestamp `protobuf:"bytes,2,opt,name=created" json:"created,omitempty"`
	// Size in bytes
	Size     *uint64           `protobuf:"varint,3,opt,name=size" json:"size,omitempty"`
	Metadata map[string]string `` /* 136-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*ObjectInfo) Descriptor deprecated

func (*ObjectInfo) Descriptor() ([]byte, []int)

Deprecated: Use ObjectInfo.ProtoReflect.Descriptor instead.

func (*ObjectInfo) GetCreated

func (x *ObjectInfo) GetCreated() *timestamp.Timestamp

func (*ObjectInfo) GetMetadata

func (x *ObjectInfo) GetMetadata() map[string]string

func (*ObjectInfo) GetName

func (x *ObjectInfo) GetName() string

func (*ObjectInfo) GetSize

func (x *ObjectInfo) GetSize() uint64

func (*ObjectInfo) ProtoMessage

func (*ObjectInfo) ProtoMessage()

func (*ObjectInfo) ProtoReflect

func (x *ObjectInfo) ProtoReflect() protoreflect.Message

func (*ObjectInfo) Reset

func (x *ObjectInfo) Reset()

func (*ObjectInfo) String

func (x *ObjectInfo) String() string

type UploadObjectRequest

type UploadObjectRequest struct {

	// Yamcs instance name. Or _global.
	Instance *string `protobuf:"bytes,1,opt,name=instance" json:"instance,omitempty"`
	// Bucket name.
	//
	// If the bucketName is “user.username“ the bucket will be created automatically
	// if it does not exist. Otherwise the bucket must exist before being used.
	BucketName *string `protobuf:"bytes,2,opt,name=bucketName" json:"bucketName,omitempty"`
	// Object name.
	ObjectName *string       `protobuf:"bytes,3,opt,name=objectName" json:"objectName,omitempty"`
	Data       *api.HttpBody `protobuf:"bytes,4,opt,name=data" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*UploadObjectRequest) Descriptor deprecated

func (*UploadObjectRequest) Descriptor() ([]byte, []int)

Deprecated: Use UploadObjectRequest.ProtoReflect.Descriptor instead.

func (*UploadObjectRequest) GetBucketName

func (x *UploadObjectRequest) GetBucketName() string

func (*UploadObjectRequest) GetData

func (x *UploadObjectRequest) GetData() *api.HttpBody

func (*UploadObjectRequest) GetInstance

func (x *UploadObjectRequest) GetInstance() string

func (*UploadObjectRequest) GetObjectName

func (x *UploadObjectRequest) GetObjectName() string

func (*UploadObjectRequest) ProtoMessage

func (*UploadObjectRequest) ProtoMessage()

func (*UploadObjectRequest) ProtoReflect

func (x *UploadObjectRequest) ProtoReflect() protoreflect.Message

func (*UploadObjectRequest) Reset

func (x *UploadObjectRequest) Reset()

func (*UploadObjectRequest) String

func (x *UploadObjectRequest) String() string

Jump to

Keyboard shortcuts

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