Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PBM-780] PBM SDK (incremental impl) #882

Merged
merged 3 commits into from
Oct 5, 2023
Merged

[PBM-780] PBM SDK (incremental impl) #882

merged 3 commits into from
Oct 5, 2023

Conversation

defbin
Copy link
Member

@defbin defbin commented Oct 4, 2023

add deps:

go mod edit -require=github.com/percona/percona-backup-mongodb@${COMMIT_HASH}
import "github.com/percona/percona-backup-mongodb/sdk"

func getAllBackups(ctx context.Context, uri string) ([]sdk.BackupMetadata, error) {
	client, err := sdk.NewClient(ctx, uri)
	if err != nil {
		return nil, err
	}
	defer func() { _ = client.Close(context.TODO()) }()

	return client.GetAllBackups(ctx)
}

cmd/pbm/backup.go Outdated Show resolved Hide resolved
sdk/impl.go Outdated Show resolved Hide resolved
sdk/impl.go Outdated Show resolved Hide resolved
sdk/impl.go Outdated Show resolved Hide resolved
sdk/impl.go Outdated Show resolved Hide resolved
sdk/util.go Outdated Show resolved Hide resolved
internal/oplog/oplog_tmp/delete.go Outdated Show resolved Hide resolved
@defbin defbin marked this pull request as ready for review October 5, 2023 11:42
@defbin defbin added this to the next milestone Oct 5, 2023
@defbin defbin merged commit c17e43d into dev Oct 5, 2023
22 checks passed
@defbin defbin deleted the PBM-780 branch October 5, 2023 11:43
@defbin defbin added maintenance improvement improvement of existing feature and removed improvement improvement of existing feature labels Oct 5, 2023
defbin added a commit that referenced this pull request Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant