Documentation ¶
Index ¶
- type EsSidecarServer
- func (s *EsSidecarServer) ConvergeRepositorySettings(ctx context.Context, in *api.ConvergeRepositorySettingsRequest) (*api.ConvergeRepositorySettingsResponse, error)
- func (s *EsSidecarServer) CreateRepository(ctx context.Context, in *api.CreateRepositoryRequest) (*api.CreateRepositoryResponse, error)
- func (s *EsSidecarServer) CreateSnapshot(ctx context.Context, in *api.CreateSnapshotRequest) (*api.CreateSnapshotResponse, error)
- func (s *EsSidecarServer) CreateSnapshotStatus(ctx context.Context, in *api.CreateSnapshotStatusRequest) (*api.CreateSnapshotStatusResponse, error)
- func (s *EsSidecarServer) DeleteSnapshot(ctx context.Context, in *api.DeleteSnapshotRequest) (*api.DeleteSnapshotResponse, error)
- func (server *EsSidecarServer) PurgeDocumentsFromIndexByAge(ctx context.Context, in *api.PurgeRequest) (*api.PurgeResponse, error)
- func (server *EsSidecarServer) PurgeTimeSeriesIndicesByAge(ctx context.Context, in *api.PurgeRequest) (*api.PurgeResponse, error)
- func (s *EsSidecarServer) RemoveRepository(ctx context.Context, in *api.RemoveRepositoryRequest) (*api.RemoveRepositoryResponse, error)
- func (s *EsSidecarServer) RestoreSnapshot(ctx context.Context, in *api.RestoreSnapshotRequest) (*api.RestoreSnapshotResponse, error)
- func (s *EsSidecarServer) RestoreSnapshotStatus(ctx context.Context, in *api.RestoreSnapshotStatusRequest) (*api.RestoreSnapshotStatusResponse, error)
- func (server *EsSidecarServer) Version(ctx context.Context, request *empty.Empty) (*api.VersionResponse, error)
- type Watcher
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EsSidecarServer ¶
type EsSidecarServer struct {
// contains filtered or unexported fields
}
EsSidecarServer is the interface to this component.
func NewEsSidecarServer ¶
func NewEsSidecarServer(es *elastic.Elastic, bc *elastic.BackupsConfig) *EsSidecarServer
NewEsSidecarServer creates a new EsSidecarServer instance.
func (*EsSidecarServer) ConvergeRepositorySettings ¶
func (s *EsSidecarServer) ConvergeRepositorySettings(ctx context.Context, in *api.ConvergeRepositorySettingsRequest) (*api.ConvergeRepositorySettingsResponse, error)
ConvergeRepositorySettings updates settings such as backup/restore throttle settings on an existing repository. Elasticsearch's APIs don't distinguish between create/update so the underlying implementation does not either, i.e., there is no error when updating a repo that doesn't exist, it gets created instead
func (*EsSidecarServer) CreateRepository ¶
func (s *EsSidecarServer) CreateRepository(ctx context.Context, in *api.CreateRepositoryRequest) (*api.CreateRepositoryResponse, error)
CreateRepository creates a snapshot repository for the service specified in the request. This API is exposed for expert use; end-user backups should only need to request a snapshot and let the repo be created implicitly.
func (*EsSidecarServer) CreateSnapshot ¶
func (s *EsSidecarServer) CreateSnapshot(ctx context.Context, in *api.CreateSnapshotRequest) (*api.CreateSnapshotResponse, error)
CreateSnapshot creates an Es snapshot for the service specified in the request. The repository type and settings are specified by the backupsConfig set on the server. The repository will be created/updated as necessary prior to the actual snapshot creation.
func (*EsSidecarServer) CreateSnapshotStatus ¶
func (s *EsSidecarServer) CreateSnapshotStatus(ctx context.Context, in *api.CreateSnapshotStatusRequest) (*api.CreateSnapshotStatusResponse, error)
CreateSnapshotStatus gives the status of snapshot creation
func (*EsSidecarServer) DeleteSnapshot ¶
func (s *EsSidecarServer) DeleteSnapshot(ctx context.Context, in *api.DeleteSnapshotRequest) (*api.DeleteSnapshotResponse, error)
func (*EsSidecarServer) PurgeDocumentsFromIndexByAge ¶
func (server *EsSidecarServer) PurgeDocumentsFromIndexByAge(ctx context.Context, in *api.PurgeRequest) (*api.PurgeResponse, error)
PurgeDocumentsFromIndexByAge deletes all documents containing a date-mapped field "end_time" older than in.OlderThanDays from in.Index.
func (*EsSidecarServer) PurgeTimeSeriesIndicesByAge ¶
func (server *EsSidecarServer) PurgeTimeSeriesIndicesByAge(ctx context.Context, in *api.PurgeRequest) (*api.PurgeResponse, error)
PurgeTimeSeriesIndicesByAge deletes indexes in the form basename-YYYY-mm-dd older than the requested number of days.
func (*EsSidecarServer) RemoveRepository ¶
func (s *EsSidecarServer) RemoveRepository(ctx context.Context, in *api.RemoveRepositoryRequest) (*api.RemoveRepositoryResponse, error)
RemoveRepository deletes the snapshot repository for the given service
func (*EsSidecarServer) RestoreSnapshot ¶
func (s *EsSidecarServer) RestoreSnapshot(ctx context.Context, in *api.RestoreSnapshotRequest) (*api.RestoreSnapshotResponse, error)
RestoreSnapshot initiates the restore of an Es snapshot for the service specified in the request. The repository type and settings are specified by the backupsConfig set on the server.
func (*EsSidecarServer) RestoreSnapshotStatus ¶
func (s *EsSidecarServer) RestoreSnapshotStatus(ctx context.Context, in *api.RestoreSnapshotStatusRequest) (*api.RestoreSnapshotStatusResponse, error)
RestoreSnapshotStatus gives the status of snapshot restore
func (*EsSidecarServer) Version ¶
func (server *EsSidecarServer) Version(ctx context.Context, request *empty.Empty) (*api.VersionResponse, error)
Version returns the Version of the ES Sidecar Service
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
Watcher is the interface to this component.