backupv1beta1

package
v2.16.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2021 License: AGPL-3.0 Imports: 21 Imported by: 4

Documentation

Overview

Package backupv1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package backupv1beta1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	Status_name = map[int32]string{
		0: "STATUS_INVALID",
		1: "PENDING",
		2: "IN_PROGRESS",
		3: "PAUSED",
		4: "SUCCESS",
		5: "ERROR",
	}
	Status_value = map[string]int32{
		"STATUS_INVALID": 0,
		"PENDING":        1,
		"IN_PROGRESS":    2,
		"PAUSED":         3,
		"SUCCESS":        4,
		"ERROR":          5,
	}
)

Enum value maps for Status.

View Source
var (
	DataModel_name = map[int32]string{
		0: "DATA_MODEL_INVALID",
		1: "PHYSICAL",
		2: "LOGICAL",
	}
	DataModel_value = map[string]int32{
		"DATA_MODEL_INVALID": 0,
		"PHYSICAL":           1,
		"LOGICAL":            2,
	}
)

Enum value maps for DataModel.

View Source
var File_managementpb_backup_artifacts_proto protoreflect.FileDescriptor
View Source
var File_managementpb_backup_locations_proto protoreflect.FileDescriptor

Functions

func RegisterArtifactsHandler

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

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

func RegisterArtifactsHandlerClient

func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactsClient) error

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

func RegisterArtifactsHandlerFromEndpoint

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

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

func RegisterArtifactsHandlerServer

func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtifactsServer) error

RegisterArtifactsHandlerServer registers the http handlers for service Artifacts to "mux". UnaryRPC :call ArtifactsServer 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 RegisterArtifactsHandlerFromEndpoint instead.

func RegisterArtifactsServer

func RegisterArtifactsServer(s *grpc.Server, srv ArtifactsServer)

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 Artifact

type Artifact struct {

	// Machine-readable artifact ID.
	ArtifactId string `protobuf:"bytes,1,opt,name=artifact_id,json=artifactId,proto3" json:"artifact_id,omitempty"`
	// Artifact name
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Database vendor e.g. PostgreSQL, MongoDB, MySQL.
	Vendor string `protobuf:"bytes,3,opt,name=vendor,proto3" json:"vendor,omitempty"`
	// Machine-readable location ID.
	LocationId string `protobuf:"bytes,4,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
	// Location name.
	LocationName string `protobuf:"bytes,5,opt,name=location_name,json=locationName,proto3" json:"location_name,omitempty"`
	// Machine-readable service ID.
	ServiceId string `protobuf:"bytes,6,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"`
	// Service name.
	ServiceName string `protobuf:"bytes,7,opt,name=service_name,json=serviceName,proto3" json:"service_name,omitempty"`
	// Backup data model.
	DataModel DataModel `protobuf:"varint,8,opt,name=data_model,json=dataModel,proto3,enum=backup.v1beta1.DataModel" json:"data_model,omitempty"`
	// Backup status.
	Status Status `protobuf:"varint,9,opt,name=status,proto3,enum=backup.v1beta1.Status" json:"status,omitempty"`
	// Artifact creation time.
	CreatedAt *timestamp.Timestamp `protobuf:"bytes,10,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

Artifact represents single backup artifact.

func (*Artifact) Descriptor deprecated

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

Deprecated: Use Artifact.ProtoReflect.Descriptor instead.

func (*Artifact) GetArtifactId

func (x *Artifact) GetArtifactId() string

func (*Artifact) GetCreatedAt

func (x *Artifact) GetCreatedAt() *timestamp.Timestamp

func (*Artifact) GetDataModel

func (x *Artifact) GetDataModel() DataModel

func (*Artifact) GetLocationId

func (x *Artifact) GetLocationId() string

func (*Artifact) GetLocationName

func (x *Artifact) GetLocationName() string

func (*Artifact) GetName

func (x *Artifact) GetName() string

func (*Artifact) GetServiceId

func (x *Artifact) GetServiceId() string

func (*Artifact) GetServiceName

func (x *Artifact) GetServiceName() string

func (*Artifact) GetStatus

func (x *Artifact) GetStatus() Status

func (*Artifact) GetVendor

func (x *Artifact) GetVendor() string

func (*Artifact) ProtoMessage

func (*Artifact) ProtoMessage()

func (*Artifact) ProtoReflect

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

func (*Artifact) Reset

func (x *Artifact) Reset()

func (*Artifact) String

func (x *Artifact) String() string

func (*Artifact) Validate

func (this *Artifact) Validate() error

type ArtifactsClient

type ArtifactsClient interface {
	// ListArtifacts returns a list of all backup artifacts.
	ListArtifacts(ctx context.Context, in *ListArtifactsRequest, opts ...grpc.CallOption) (*ListArtifactsResponse, error)
}

ArtifactsClient is the client API for Artifacts service.

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

func NewArtifactsClient

func NewArtifactsClient(cc grpc.ClientConnInterface) ArtifactsClient

type ArtifactsServer

type ArtifactsServer interface {
	// ListArtifacts returns a list of all backup artifacts.
	ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error)
}

ArtifactsServer is the server API for Artifacts service.

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 DataModel

type DataModel int32

DataModel is a model used for performing a backup.

const (
	DataModel_DATA_MODEL_INVALID DataModel = 0
	DataModel_PHYSICAL           DataModel = 1
	DataModel_LOGICAL            DataModel = 2
)

func (DataModel) Descriptor

func (DataModel) Descriptor() protoreflect.EnumDescriptor

func (DataModel) Enum

func (x DataModel) Enum() *DataModel

func (DataModel) EnumDescriptor deprecated

func (DataModel) EnumDescriptor() ([]byte, []int)

Deprecated: Use DataModel.Descriptor instead.

func (DataModel) Number

func (x DataModel) Number() protoreflect.EnumNumber

func (DataModel) String

func (x DataModel) String() string

func (DataModel) Type

type ListArtifactsRequest

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

func (*ListArtifactsRequest) Descriptor deprecated

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

Deprecated: Use ListArtifactsRequest.ProtoReflect.Descriptor instead.

func (*ListArtifactsRequest) ProtoMessage

func (*ListArtifactsRequest) ProtoMessage()

func (*ListArtifactsRequest) ProtoReflect

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

func (*ListArtifactsRequest) Reset

func (x *ListArtifactsRequest) Reset()

func (*ListArtifactsRequest) String

func (x *ListArtifactsRequest) String() string

func (*ListArtifactsRequest) Validate

func (this *ListArtifactsRequest) Validate() error

type ListArtifactsResponse

type ListArtifactsResponse struct {
	Artifacts []*Artifact `protobuf:"bytes,1,rep,name=artifacts,proto3" json:"artifacts,omitempty"`
	// contains filtered or unexported fields
}

func (*ListArtifactsResponse) Descriptor deprecated

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

Deprecated: Use ListArtifactsResponse.ProtoReflect.Descriptor instead.

func (*ListArtifactsResponse) GetArtifacts

func (x *ListArtifactsResponse) GetArtifacts() []*Artifact

func (*ListArtifactsResponse) ProtoMessage

func (*ListArtifactsResponse) ProtoMessage()

func (*ListArtifactsResponse) ProtoReflect

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

func (*ListArtifactsResponse) Reset

func (x *ListArtifactsResponse) Reset()

func (*ListArtifactsResponse) String

func (x *ListArtifactsResponse) String() string

func (*ListArtifactsResponse) Validate

func (this *ListArtifactsResponse) 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)
	// TestLocationConfig tests backup location and credentials.
	TestLocationConfig(ctx context.Context, in *TestLocationConfigRequest, opts ...grpc.CallOption) (*TestLocationConfigResponse, 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)
	// TestLocationConfig tests backup location and credentials.
	TestLocationConfig(context.Context, *TestLocationConfigRequest) (*TestLocationConfigResponse, 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"`
	BucketName string `protobuf:"bytes,4,opt,name=bucket_name,json=bucketName,proto3" json:"bucket_name,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) GetBucketName

func (x *S3LocationConfig) GetBucketName() 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 Status

type Status int32

Status shows current status of backup.

const (
	Status_STATUS_INVALID Status = 0
	Status_PENDING        Status = 1
	Status_IN_PROGRESS    Status = 2
	Status_PAUSED         Status = 3
	Status_SUCCESS        Status = 4
	Status_ERROR          Status = 5
)

func (Status) Descriptor

func (Status) Descriptor() protoreflect.EnumDescriptor

func (Status) Enum

func (x Status) Enum() *Status

func (Status) EnumDescriptor deprecated

func (Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Status.Descriptor instead.

func (Status) Number

func (x Status) Number() protoreflect.EnumNumber

func (Status) String

func (x Status) String() string

func (Status) Type

func (Status) Type() protoreflect.EnumType

type TestLocationConfigRequest

type TestLocationConfigRequest struct {

	// PMM-client file system configuration. Exactly one config should be set.
	PmmClientConfig *PMMClientLocationConfig `protobuf:"bytes,1,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,2,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,3,opt,name=s3_config,json=s3Config,proto3" json:"s3_config,omitempty"`
	// contains filtered or unexported fields
}

func (*TestLocationConfigRequest) Descriptor deprecated

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

Deprecated: Use TestLocationConfigRequest.ProtoReflect.Descriptor instead.

func (*TestLocationConfigRequest) GetPmmClientConfig

func (x *TestLocationConfigRequest) GetPmmClientConfig() *PMMClientLocationConfig

func (*TestLocationConfigRequest) GetPmmServerConfig

func (x *TestLocationConfigRequest) GetPmmServerConfig() *PMMServerLocationConfig

func (*TestLocationConfigRequest) GetS3Config

func (x *TestLocationConfigRequest) GetS3Config() *S3LocationConfig

func (*TestLocationConfigRequest) ProtoMessage

func (*TestLocationConfigRequest) ProtoMessage()

func (*TestLocationConfigRequest) ProtoReflect

func (*TestLocationConfigRequest) Reset

func (x *TestLocationConfigRequest) Reset()

func (*TestLocationConfigRequest) String

func (x *TestLocationConfigRequest) String() string

func (*TestLocationConfigRequest) Validate

func (this *TestLocationConfigRequest) Validate() error

type TestLocationConfigResponse

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

func (*TestLocationConfigResponse) Descriptor deprecated

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

Deprecated: Use TestLocationConfigResponse.ProtoReflect.Descriptor instead.

func (*TestLocationConfigResponse) ProtoMessage

func (*TestLocationConfigResponse) ProtoMessage()

func (*TestLocationConfigResponse) ProtoReflect

func (*TestLocationConfigResponse) Reset

func (x *TestLocationConfigResponse) Reset()

func (*TestLocationConfigResponse) String

func (x *TestLocationConfigResponse) String() string

func (*TestLocationConfigResponse) Validate

func (this *TestLocationConfigResponse) Validate() error

type UnimplementedArtifactsServer

type UnimplementedArtifactsServer struct {
}

UnimplementedArtifactsServer can be embedded to have forward compatible implementations.

func (*UnimplementedArtifactsServer) ListArtifacts

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

func (*UnimplementedLocationsServer) TestLocationConfig

Directories

Path Synopsis
json

Jump to

Keyboard shortcuts

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