backupv1beta1

package
v2.15.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2021 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Overview

Package backupv1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_managementpb_backup_locations_proto protoreflect.FileDescriptor

Functions

func RegisterLocationsHandler

func RegisterLocationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterLocationsHandler registers the http handlers for service Locations to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterLocationsHandlerClient

func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LocationsClient) error

RegisterLocationsHandlerClient registers the http handlers for service Locations to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "LocationsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "LocationsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "LocationsClient" to call the correct interceptors.

func RegisterLocationsHandlerFromEndpoint

func RegisterLocationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterLocationsHandlerFromEndpoint is same as RegisterLocationsHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterLocationsHandlerServer

func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LocationsServer) error

RegisterLocationsHandlerServer registers the http handlers for service Locations to "mux". UnaryRPC :call LocationsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterLocationsHandlerFromEndpoint instead.

func RegisterLocationsServer

func RegisterLocationsServer(s *grpc.Server, srv LocationsServer)

Types

type AddLocationRequest

type AddLocationRequest struct {

	// Location name
	Name        string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// PMM-client file system configuration. Exactly one config should be set.
	PmmClientConfig *PMMClientLocationConfig `protobuf:"bytes,3,opt,name=pmm_client_config,json=pmmClientConfig,proto3" json:"pmm_client_config,omitempty"`
	// PMM-server file system configuration. Exactly one config should be set.
	PmmServerConfig *PMMServerLocationConfig `protobuf:"bytes,4,opt,name=pmm_server_config,json=pmmServerConfig,proto3" json:"pmm_server_config,omitempty"`
	// S3 Bucket configuration. Exactly one config should be set.
	S3Config *S3LocationConfig `protobuf:"bytes,5,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
	// contains filtered or unexported fields
}

func (*AddLocationRequest) Descriptor deprecated

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

Deprecated: Use AddLocationRequest.ProtoReflect.Descriptor instead.

func (*AddLocationRequest) GetDescription

func (x *AddLocationRequest) GetDescription() string

func (*AddLocationRequest) GetName

func (x *AddLocationRequest) GetName() string

func (*AddLocationRequest) GetPmmClientConfig

func (x *AddLocationRequest) GetPmmClientConfig() *PMMClientLocationConfig

func (*AddLocationRequest) GetPmmServerConfig

func (x *AddLocationRequest) GetPmmServerConfig() *PMMServerLocationConfig

func (*AddLocationRequest) GetS3Config

func (x *AddLocationRequest) GetS3Config() *S3LocationConfig

func (*AddLocationRequest) ProtoMessage

func (*AddLocationRequest) ProtoMessage()

func (*AddLocationRequest) ProtoReflect

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

func (*AddLocationRequest) Reset

func (x *AddLocationRequest) Reset()

func (*AddLocationRequest) String

func (x *AddLocationRequest) String() string

func (*AddLocationRequest) Validate

func (this *AddLocationRequest) Validate() error

type AddLocationResponse

type AddLocationResponse struct {

	// Machine-readable ID.
	LocationId string `protobuf:"bytes,1,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// contains filtered or unexported fields
}

func (*AddLocationResponse) Descriptor deprecated

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

Deprecated: Use AddLocationResponse.ProtoReflect.Descriptor instead.

func (*AddLocationResponse) GetLocationId

func (x *AddLocationResponse) GetLocationId() string

func (*AddLocationResponse) ProtoMessage

func (*AddLocationResponse) ProtoMessage()

func (*AddLocationResponse) ProtoReflect

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

func (*AddLocationResponse) Reset

func (x *AddLocationResponse) Reset()

func (*AddLocationResponse) String

func (x *AddLocationResponse) String() string

func (*AddLocationResponse) Validate

func (this *AddLocationResponse) Validate() error

type ChangeLocationRequest

type ChangeLocationRequest struct {

	// Machine-readable ID.
	LocationId string `protobuf:"bytes,1,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// Location name
	Name        string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// PMM-client file system configuration. Exactly one config should be set.
	PmmClientConfig *PMMClientLocationConfig `protobuf:"bytes,4,opt,name=pmm_client_config,json=pmmClientConfig,proto3" json:"pmm_client_config,omitempty"`
	// PMM-server file system configuration. Exactly one config should be set.
	PmmServerConfig *PMMServerLocationConfig `protobuf:"bytes,5,opt,name=pmm_server_config,json=pmmServerConfig,proto3" json:"pmm_server_config,omitempty"`
	// S3 Bucket configuration. Exactly one config should be set.
	S3Config *S3LocationConfig `protobuf:"bytes,6,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangeLocationRequest) Descriptor deprecated

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

Deprecated: Use ChangeLocationRequest.ProtoReflect.Descriptor instead.

func (*ChangeLocationRequest) GetDescription

func (x *ChangeLocationRequest) GetDescription() string

func (*ChangeLocationRequest) GetLocationId

func (x *ChangeLocationRequest) GetLocationId() string

func (*ChangeLocationRequest) GetName

func (x *ChangeLocationRequest) GetName() string

func (*ChangeLocationRequest) GetPmmClientConfig

func (x *ChangeLocationRequest) GetPmmClientConfig() *PMMClientLocationConfig

func (*ChangeLocationRequest) GetPmmServerConfig

func (x *ChangeLocationRequest) GetPmmServerConfig() *PMMServerLocationConfig

func (*ChangeLocationRequest) GetS3Config

func (x *ChangeLocationRequest) GetS3Config() *S3LocationConfig

func (*ChangeLocationRequest) ProtoMessage

func (*ChangeLocationRequest) ProtoMessage()

func (*ChangeLocationRequest) ProtoReflect

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

func (*ChangeLocationRequest) Reset

func (x *ChangeLocationRequest) Reset()

func (*ChangeLocationRequest) String

func (x *ChangeLocationRequest) String() string

func (*ChangeLocationRequest) Validate

func (this *ChangeLocationRequest) Validate() error

type ChangeLocationResponse

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

func (*ChangeLocationResponse) Descriptor deprecated

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

Deprecated: Use ChangeLocationResponse.ProtoReflect.Descriptor instead.

func (*ChangeLocationResponse) ProtoMessage

func (*ChangeLocationResponse) ProtoMessage()

func (*ChangeLocationResponse) ProtoReflect

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

func (*ChangeLocationResponse) Reset

func (x *ChangeLocationResponse) Reset()

func (*ChangeLocationResponse) String

func (x *ChangeLocationResponse) String() string

func (*ChangeLocationResponse) Validate

func (this *ChangeLocationResponse) Validate() error

type ListLocationsRequest

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

func (*ListLocationsRequest) Descriptor deprecated

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

Deprecated: Use ListLocationsRequest.ProtoReflect.Descriptor instead.

func (*ListLocationsRequest) ProtoMessage

func (*ListLocationsRequest) ProtoMessage()

func (*ListLocationsRequest) ProtoReflect

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

func (*ListLocationsRequest) Reset

func (x *ListLocationsRequest) Reset()

func (*ListLocationsRequest) String

func (x *ListLocationsRequest) String() string

func (*ListLocationsRequest) Validate

func (this *ListLocationsRequest) Validate() error

type ListLocationsResponse

type ListLocationsResponse struct {
	Locations []*Location `protobuf:"bytes,1,rep,name=locations,proto3" json:"locations,omitempty"`
	// contains filtered or unexported fields
}

func (*ListLocationsResponse) Descriptor deprecated

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

Deprecated: Use ListLocationsResponse.ProtoReflect.Descriptor instead.

func (*ListLocationsResponse) GetLocations

func (x *ListLocationsResponse) GetLocations() []*Location

func (*ListLocationsResponse) ProtoMessage

func (*ListLocationsResponse) ProtoMessage()

func (*ListLocationsResponse) ProtoReflect

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

func (*ListLocationsResponse) Reset

func (x *ListLocationsResponse) Reset()

func (*ListLocationsResponse) String

func (x *ListLocationsResponse) String() string

func (*ListLocationsResponse) Validate

func (this *ListLocationsResponse) Validate() error

type Location

type Location struct {

	// Machine-readable ID.
	LocationId string `protobuf:"bytes,1,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// Location name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Short description
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Types that are assignable to Config:
	//	*Location_PmmClientConfig
	//	*Location_PmmServerConfig
	//	*Location_S3Config
	Config isLocation_Config `protobuf_oneof:"config"`
	// contains filtered or unexported fields
}

Location represents single Backup Location.

func (*Location) Descriptor deprecated

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

Deprecated: Use Location.ProtoReflect.Descriptor instead.

func (*Location) GetConfig

func (m *Location) GetConfig() isLocation_Config

func (*Location) GetDescription

func (x *Location) GetDescription() string

func (*Location) GetLocationId

func (x *Location) GetLocationId() string

func (*Location) GetName

func (x *Location) GetName() string

func (*Location) GetPmmClientConfig

func (x *Location) GetPmmClientConfig() *PMMClientLocationConfig

func (*Location) GetPmmServerConfig

func (x *Location) GetPmmServerConfig() *PMMServerLocationConfig

func (*Location) GetS3Config

func (x *Location) GetS3Config() *S3LocationConfig

func (*Location) ProtoMessage

func (*Location) ProtoMessage()

func (*Location) ProtoReflect

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

func (*Location) Reset

func (x *Location) Reset()

func (*Location) String

func (x *Location) String() string

func (*Location) Validate

func (this *Location) Validate() error

type Location_PmmClientConfig

type Location_PmmClientConfig struct {
	PmmClientConfig *PMMClientLocationConfig `protobuf:"bytes,4,opt,name=pmm_client_config,json=pmmClientConfig,proto3,oneof"`
}

type Location_PmmServerConfig

type Location_PmmServerConfig struct {
	PmmServerConfig *PMMServerLocationConfig `protobuf:"bytes,5,opt,name=pmm_server_config,json=pmmServerConfig,proto3,oneof"`
}

type Location_S3Config

type Location_S3Config struct {
	S3Config *S3LocationConfig `protobuf:"bytes,6,opt,name=s3_config,json=s3Config,proto3,oneof"`
}

type LocationsClient

type LocationsClient interface {
	// ListLocations returns a list of all backup locations.
	ListLocations(ctx context.Context, in *ListLocationsRequest, opts ...grpc.CallOption) (*ListLocationsResponse, error)
	// AddLocation adds backup location.
	AddLocation(ctx context.Context, in *AddLocationRequest, opts ...grpc.CallOption) (*AddLocationResponse, error)
	// ChangeLocation changes backup location.
	ChangeLocation(ctx context.Context, in *ChangeLocationRequest, opts ...grpc.CallOption) (*ChangeLocationResponse, error)
	// RemoveLocation removes existing backup location.
	RemoveLocation(ctx context.Context, in *RemoveLocationRequest, opts ...grpc.CallOption) (*RemoveLocationResponse, error)
}

LocationsClient is the client API for Locations service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewLocationsClient

func NewLocationsClient(cc grpc.ClientConnInterface) LocationsClient

type LocationsServer

type LocationsServer interface {
	// ListLocations returns a list of all backup locations.
	ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error)
	// AddLocation adds backup location.
	AddLocation(context.Context, *AddLocationRequest) (*AddLocationResponse, error)
	// ChangeLocation changes backup location.
	ChangeLocation(context.Context, *ChangeLocationRequest) (*ChangeLocationResponse, error)
	// RemoveLocation removes existing backup location.
	RemoveLocation(context.Context, *RemoveLocationRequest) (*RemoveLocationResponse, error)
}

LocationsServer is the server API for Locations service.

type PMMClientLocationConfig

type PMMClientLocationConfig struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

PMMClientLocationConfig represents file system config inside pmm-client.

func (*PMMClientLocationConfig) Descriptor deprecated

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

Deprecated: Use PMMClientLocationConfig.ProtoReflect.Descriptor instead.

func (*PMMClientLocationConfig) GetPath

func (x *PMMClientLocationConfig) GetPath() string

func (*PMMClientLocationConfig) ProtoMessage

func (*PMMClientLocationConfig) ProtoMessage()

func (*PMMClientLocationConfig) ProtoReflect

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

func (*PMMClientLocationConfig) Reset

func (x *PMMClientLocationConfig) Reset()

func (*PMMClientLocationConfig) String

func (x *PMMClientLocationConfig) String() string

func (*PMMClientLocationConfig) Validate

func (this *PMMClientLocationConfig) Validate() error

type PMMServerLocationConfig

type PMMServerLocationConfig struct {
	Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
	// contains filtered or unexported fields
}

PMMServerLocationConfig represents file system config inside pmm-server.

func (*PMMServerLocationConfig) Descriptor deprecated

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

Deprecated: Use PMMServerLocationConfig.ProtoReflect.Descriptor instead.

func (*PMMServerLocationConfig) GetPath

func (x *PMMServerLocationConfig) GetPath() string

func (*PMMServerLocationConfig) ProtoMessage

func (*PMMServerLocationConfig) ProtoMessage()

func (*PMMServerLocationConfig) ProtoReflect

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

func (*PMMServerLocationConfig) Reset

func (x *PMMServerLocationConfig) Reset()

func (*PMMServerLocationConfig) String

func (x *PMMServerLocationConfig) String() string

func (*PMMServerLocationConfig) Validate

func (this *PMMServerLocationConfig) Validate() error

type RemoveLocationRequest

type RemoveLocationRequest struct {

	// Machine-readable ID.
	LocationId string `protobuf:"bytes,1,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// Force mode
	Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
	// contains filtered or unexported fields
}

func (*RemoveLocationRequest) Descriptor deprecated

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

Deprecated: Use RemoveLocationRequest.ProtoReflect.Descriptor instead.

func (*RemoveLocationRequest) GetForce

func (x *RemoveLocationRequest) GetForce() bool

func (*RemoveLocationRequest) GetLocationId

func (x *RemoveLocationRequest) GetLocationId() string

func (*RemoveLocationRequest) ProtoMessage

func (*RemoveLocationRequest) ProtoMessage()

func (*RemoveLocationRequest) ProtoReflect

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

func (*RemoveLocationRequest) Reset

func (x *RemoveLocationRequest) Reset()

func (*RemoveLocationRequest) String

func (x *RemoveLocationRequest) String() string

func (*RemoveLocationRequest) Validate

func (this *RemoveLocationRequest) Validate() error

type RemoveLocationResponse

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

func (*RemoveLocationResponse) Descriptor deprecated

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

Deprecated: Use RemoveLocationResponse.ProtoReflect.Descriptor instead.

func (*RemoveLocationResponse) ProtoMessage

func (*RemoveLocationResponse) ProtoMessage()

func (*RemoveLocationResponse) ProtoReflect

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

func (*RemoveLocationResponse) Reset

func (x *RemoveLocationResponse) Reset()

func (*RemoveLocationResponse) String

func (x *RemoveLocationResponse) String() string

func (*RemoveLocationResponse) Validate

func (this *RemoveLocationResponse) Validate() error

type S3LocationConfig

type S3LocationConfig struct {
	Endpoint  string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
	AccessKey string `protobuf:"bytes,2,opt,name=access_key,json=accessKey,proto3" json:"access_key,omitempty"`
	SecretKey string `protobuf:"bytes,3,opt,name=secret_key,json=secretKey,proto3" json:"secret_key,omitempty"`
	// contains filtered or unexported fields
}

S3LocationConfig represents S3 bucket configuration.

func (*S3LocationConfig) Descriptor deprecated

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

Deprecated: Use S3LocationConfig.ProtoReflect.Descriptor instead.

func (*S3LocationConfig) GetAccessKey

func (x *S3LocationConfig) GetAccessKey() string

func (*S3LocationConfig) GetEndpoint

func (x *S3LocationConfig) GetEndpoint() string

func (*S3LocationConfig) GetSecretKey

func (x *S3LocationConfig) GetSecretKey() string

func (*S3LocationConfig) ProtoMessage

func (*S3LocationConfig) ProtoMessage()

func (*S3LocationConfig) ProtoReflect

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

func (*S3LocationConfig) Reset

func (x *S3LocationConfig) Reset()

func (*S3LocationConfig) String

func (x *S3LocationConfig) String() string

func (*S3LocationConfig) Validate

func (this *S3LocationConfig) Validate() error

type UnimplementedLocationsServer

type UnimplementedLocationsServer struct {
}

UnimplementedLocationsServer can be embedded to have forward compatible implementations.

func (*UnimplementedLocationsServer) AddLocation

func (*UnimplementedLocationsServer) ChangeLocation

func (*UnimplementedLocationsServer) ListLocations

func (*UnimplementedLocationsServer) RemoveLocation

Directories

Path Synopsis
json

Jump to

Keyboard shortcuts

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