Documentation
¶
Index ¶
- func ConvertBucketManifest(manifest br.ManifestBucketEntry) api.BucketMetadataManifest
- func ConvertRetentionPolicy(manifest br.ManifestRetentionPolicy) api.RetentionPolicyManifest
- func ConvertShard(manifest br.ManifestShardEntry) api.ShardManifest
- func ConvertShardGroup(manifest br.ManifestShardGroup) api.ShardGroupManifest
- type ApiConfig
- type Client
- type Params
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertBucketManifest ¶
func ConvertBucketManifest(manifest br.ManifestBucketEntry) api.BucketMetadataManifest
ConvertBucketManifest converts a manifest parsed from local disk into a model compatible with the server-side API.
func ConvertRetentionPolicy ¶
func ConvertRetentionPolicy(manifest br.ManifestRetentionPolicy) api.RetentionPolicyManifest
func ConvertShard ¶
func ConvertShard(manifest br.ManifestShardEntry) api.ShardManifest
func ConvertShardGroup ¶
func ConvertShardGroup(manifest br.ManifestShardGroup) api.ShardGroupManifest
Types ¶
type ApiConfig ¶ added in v2.2.0
type ApiConfig interface {
GetConfig() *api.Configuration
}
type Client ¶
type Client struct {
clients.CLI
api.HealthApi
api.RestoreApi
api.BucketsApi
api.OrganizationsApi
ApiConfig
// contains filtered or unexported fields
}
type Params ¶
type Params struct {
// Path to local backup data created using `influx backup`
Path string
// Original ID/name of the organization to restore.
// If not set, all orgs will be restored.
clients.OrgParams
// New name to use for the restored organization.
// If not set, the org will be restored using its backed-up name.
NewOrgName string
// Original ID/name of the bucket to restore.
// If not set, all buckets within the org filter will be restored.
clients.BucketParams
// New name to use for the restored bucket.
// If not set, the bucket will be restored using its backed-up name.
NewBucketName string
// If true, replace all data on the server with the local backup.
// Otherwise only restore the requested org/bucket, leaving other data untouched.
Full bool
}
Click to show internal directories.
Click to hide internal directories.