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 ¶
- Variables
- func RegisterArtifactsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterArtifactsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ArtifactsClient) error
- func RegisterArtifactsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterArtifactsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ArtifactsServer) error
- func RegisterArtifactsServer(s *grpc.Server, srv ArtifactsServer)
- func RegisterLocationsHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterLocationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LocationsClient) error
- func RegisterLocationsHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterLocationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LocationsServer) error
- func RegisterLocationsServer(s *grpc.Server, srv LocationsServer)
- type AddLocationRequest
- func (*AddLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddLocationRequest) GetDescription() string
- func (x *AddLocationRequest) GetName() string
- func (x *AddLocationRequest) GetPmmClientConfig() *PMMClientLocationConfig
- func (x *AddLocationRequest) GetPmmServerConfig() *PMMServerLocationConfig
- func (x *AddLocationRequest) GetS3Config() *S3LocationConfig
- func (*AddLocationRequest) ProtoMessage()
- func (x *AddLocationRequest) ProtoReflect() protoreflect.Message
- func (x *AddLocationRequest) Reset()
- func (x *AddLocationRequest) String() string
- func (this *AddLocationRequest) Validate() error
- type AddLocationResponse
- func (*AddLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AddLocationResponse) GetLocationId() string
- func (*AddLocationResponse) ProtoMessage()
- func (x *AddLocationResponse) ProtoReflect() protoreflect.Message
- func (x *AddLocationResponse) Reset()
- func (x *AddLocationResponse) String() string
- func (this *AddLocationResponse) Validate() error
- type Artifact
- func (*Artifact) Descriptor() ([]byte, []int)deprecated
- func (x *Artifact) GetArtifactId() string
- func (x *Artifact) GetCreatedAt() *timestamp.Timestamp
- func (x *Artifact) GetDataModel() DataModel
- func (x *Artifact) GetLocationId() string
- func (x *Artifact) GetLocationName() string
- func (x *Artifact) GetName() string
- func (x *Artifact) GetServiceId() string
- func (x *Artifact) GetServiceName() string
- func (x *Artifact) GetStatus() Status
- func (x *Artifact) GetVendor() string
- func (*Artifact) ProtoMessage()
- func (x *Artifact) ProtoReflect() protoreflect.Message
- func (x *Artifact) Reset()
- func (x *Artifact) String() string
- func (this *Artifact) Validate() error
- type ArtifactsClient
- type ArtifactsServer
- type ChangeLocationRequest
- func (*ChangeLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChangeLocationRequest) GetDescription() string
- func (x *ChangeLocationRequest) GetLocationId() string
- func (x *ChangeLocationRequest) GetName() string
- func (x *ChangeLocationRequest) GetPmmClientConfig() *PMMClientLocationConfig
- func (x *ChangeLocationRequest) GetPmmServerConfig() *PMMServerLocationConfig
- func (x *ChangeLocationRequest) GetS3Config() *S3LocationConfig
- func (*ChangeLocationRequest) ProtoMessage()
- func (x *ChangeLocationRequest) ProtoReflect() protoreflect.Message
- func (x *ChangeLocationRequest) Reset()
- func (x *ChangeLocationRequest) String() string
- func (this *ChangeLocationRequest) Validate() error
- type ChangeLocationResponse
- func (*ChangeLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (*ChangeLocationResponse) ProtoMessage()
- func (x *ChangeLocationResponse) ProtoReflect() protoreflect.Message
- func (x *ChangeLocationResponse) Reset()
- func (x *ChangeLocationResponse) String() string
- func (this *ChangeLocationResponse) Validate() error
- type DataModel
- type ListArtifactsRequest
- func (*ListArtifactsRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListArtifactsRequest) ProtoMessage()
- func (x *ListArtifactsRequest) ProtoReflect() protoreflect.Message
- func (x *ListArtifactsRequest) Reset()
- func (x *ListArtifactsRequest) String() string
- func (this *ListArtifactsRequest) Validate() error
- type ListArtifactsResponse
- func (*ListArtifactsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListArtifactsResponse) GetArtifacts() []*Artifact
- func (*ListArtifactsResponse) ProtoMessage()
- func (x *ListArtifactsResponse) ProtoReflect() protoreflect.Message
- func (x *ListArtifactsResponse) Reset()
- func (x *ListArtifactsResponse) String() string
- func (this *ListArtifactsResponse) Validate() error
- type ListLocationsRequest
- func (*ListLocationsRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListLocationsRequest) ProtoMessage()
- func (x *ListLocationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListLocationsRequest) Reset()
- func (x *ListLocationsRequest) String() string
- func (this *ListLocationsRequest) Validate() error
- type ListLocationsResponse
- func (*ListLocationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListLocationsResponse) GetLocations() []*Location
- func (*ListLocationsResponse) ProtoMessage()
- func (x *ListLocationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListLocationsResponse) Reset()
- func (x *ListLocationsResponse) String() string
- func (this *ListLocationsResponse) Validate() error
- type Location
- func (*Location) Descriptor() ([]byte, []int)deprecated
- func (m *Location) GetConfig() isLocation_Config
- func (x *Location) GetDescription() string
- func (x *Location) GetLocationId() string
- func (x *Location) GetName() string
- func (x *Location) GetPmmClientConfig() *PMMClientLocationConfig
- func (x *Location) GetPmmServerConfig() *PMMServerLocationConfig
- func (x *Location) GetS3Config() *S3LocationConfig
- func (*Location) ProtoMessage()
- func (x *Location) ProtoReflect() protoreflect.Message
- func (x *Location) Reset()
- func (x *Location) String() string
- func (this *Location) Validate() error
- type Location_PmmClientConfig
- type Location_PmmServerConfig
- type Location_S3Config
- type LocationsClient
- type LocationsServer
- type PMMClientLocationConfig
- func (*PMMClientLocationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PMMClientLocationConfig) GetPath() string
- func (*PMMClientLocationConfig) ProtoMessage()
- func (x *PMMClientLocationConfig) ProtoReflect() protoreflect.Message
- func (x *PMMClientLocationConfig) Reset()
- func (x *PMMClientLocationConfig) String() string
- func (this *PMMClientLocationConfig) Validate() error
- type PMMServerLocationConfig
- func (*PMMServerLocationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PMMServerLocationConfig) GetPath() string
- func (*PMMServerLocationConfig) ProtoMessage()
- func (x *PMMServerLocationConfig) ProtoReflect() protoreflect.Message
- func (x *PMMServerLocationConfig) Reset()
- func (x *PMMServerLocationConfig) String() string
- func (this *PMMServerLocationConfig) Validate() error
- type RemoveLocationRequest
- func (*RemoveLocationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveLocationRequest) GetForce() bool
- func (x *RemoveLocationRequest) GetLocationId() string
- func (*RemoveLocationRequest) ProtoMessage()
- func (x *RemoveLocationRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveLocationRequest) Reset()
- func (x *RemoveLocationRequest) String() string
- func (this *RemoveLocationRequest) Validate() error
- type RemoveLocationResponse
- func (*RemoveLocationResponse) Descriptor() ([]byte, []int)deprecated
- func (*RemoveLocationResponse) ProtoMessage()
- func (x *RemoveLocationResponse) ProtoReflect() protoreflect.Message
- func (x *RemoveLocationResponse) Reset()
- func (x *RemoveLocationResponse) String() string
- func (this *RemoveLocationResponse) Validate() error
- type S3LocationConfig
- func (*S3LocationConfig) Descriptor() ([]byte, []int)deprecated
- func (x *S3LocationConfig) GetAccessKey() string
- func (x *S3LocationConfig) GetBucketName() string
- func (x *S3LocationConfig) GetEndpoint() string
- func (x *S3LocationConfig) GetSecretKey() string
- func (*S3LocationConfig) ProtoMessage()
- func (x *S3LocationConfig) ProtoReflect() protoreflect.Message
- func (x *S3LocationConfig) Reset()
- func (x *S3LocationConfig) String() string
- func (this *S3LocationConfig) Validate() error
- type Status
- type TestLocationConfigRequest
- func (*TestLocationConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *TestLocationConfigRequest) GetPmmClientConfig() *PMMClientLocationConfig
- func (x *TestLocationConfigRequest) GetPmmServerConfig() *PMMServerLocationConfig
- func (x *TestLocationConfigRequest) GetS3Config() *S3LocationConfig
- func (*TestLocationConfigRequest) ProtoMessage()
- func (x *TestLocationConfigRequest) ProtoReflect() protoreflect.Message
- func (x *TestLocationConfigRequest) Reset()
- func (x *TestLocationConfigRequest) String() string
- func (this *TestLocationConfigRequest) Validate() error
- type TestLocationConfigResponse
- func (*TestLocationConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (*TestLocationConfigResponse) ProtoMessage()
- func (x *TestLocationConfigResponse) ProtoReflect() protoreflect.Message
- func (x *TestLocationConfigResponse) Reset()
- func (x *TestLocationConfigResponse) String() string
- func (this *TestLocationConfigResponse) Validate() error
- type UnimplementedArtifactsServer
- type UnimplementedLocationsServer
- func (*UnimplementedLocationsServer) AddLocation(context.Context, *AddLocationRequest) (*AddLocationResponse, error)
- func (*UnimplementedLocationsServer) ChangeLocation(context.Context, *ChangeLocationRequest) (*ChangeLocationResponse, error)
- func (*UnimplementedLocationsServer) ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error)
- func (*UnimplementedLocationsServer) RemoveLocation(context.Context, *RemoveLocationRequest) (*RemoveLocationResponse, error)
- func (*UnimplementedLocationsServer) TestLocationConfig(context.Context, *TestLocationConfigRequest) (*TestLocationConfigResponse, error)
Constants ¶
This section is empty.
Variables ¶
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.
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.
var File_managementpb_backup_artifacts_proto protoreflect.FileDescriptor
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) GetArtifactId ¶
func (*Artifact) GetCreatedAt ¶
func (*Artifact) GetDataModel ¶
func (*Artifact) GetLocationId ¶
func (*Artifact) GetLocationName ¶
func (*Artifact) GetServiceId ¶
func (*Artifact) GetServiceName ¶
func (*Artifact) ProtoMessage ¶
func (*Artifact) ProtoMessage()
func (*Artifact) ProtoReflect ¶
func (x *Artifact) ProtoReflect() protoreflect.Message
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.
func (DataModel) Descriptor ¶
func (DataModel) Descriptor() protoreflect.EnumDescriptor
func (DataModel) EnumDescriptor
deprecated
func (DataModel) Number ¶
func (x DataModel) Number() protoreflect.EnumNumber
func (DataModel) Type ¶
func (DataModel) Type() protoreflect.EnumType
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) GetDescription ¶
func (*Location) GetLocationId ¶
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
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.
func (Status) Descriptor ¶
func (Status) Descriptor() protoreflect.EnumDescriptor
func (Status) EnumDescriptor
deprecated
func (Status) Number ¶
func (x Status) Number() protoreflect.EnumNumber
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 (x *TestLocationConfigRequest) ProtoReflect() protoreflect.Message
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 (x *TestLocationConfigResponse) ProtoReflect() protoreflect.Message
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 ¶
func (*UnimplementedArtifactsServer) ListArtifacts(context.Context, *ListArtifactsRequest) (*ListArtifactsResponse, error)
type UnimplementedLocationsServer ¶
type UnimplementedLocationsServer struct { }
UnimplementedLocationsServer can be embedded to have forward compatible implementations.
func (*UnimplementedLocationsServer) AddLocation ¶
func (*UnimplementedLocationsServer) AddLocation(context.Context, *AddLocationRequest) (*AddLocationResponse, error)
func (*UnimplementedLocationsServer) ChangeLocation ¶
func (*UnimplementedLocationsServer) ChangeLocation(context.Context, *ChangeLocationRequest) (*ChangeLocationResponse, error)
func (*UnimplementedLocationsServer) ListLocations ¶
func (*UnimplementedLocationsServer) ListLocations(context.Context, *ListLocationsRequest) (*ListLocationsResponse, error)
func (*UnimplementedLocationsServer) RemoveLocation ¶
func (*UnimplementedLocationsServer) RemoveLocation(context.Context, *RemoveLocationRequest) (*RemoveLocationResponse, error)
func (*UnimplementedLocationsServer) TestLocationConfig ¶
func (*UnimplementedLocationsServer) TestLocationConfig(context.Context, *TestLocationConfigRequest) (*TestLocationConfigResponse, error)