mirror of https://github.com/docker/compose.git
24 lines
605 B
Go
24 lines
605 B
Go
package ecs
|
|
|
|
import (
|
|
"context"
|
|
"github.com/docker/api/secrets"
|
|
)
|
|
|
|
|
|
func (b *ecsAPIService) CreateSecret(ctx context.Context, secret secrets.Secret) (string, error) {
|
|
return b.SDK.CreateSecret(ctx, secret)
|
|
}
|
|
|
|
func (b *ecsAPIService) InspectSecret(ctx context.Context, id string) (secrets.Secret, error) {
|
|
return b.SDK.InspectSecret(ctx, id)
|
|
}
|
|
|
|
func (b *ecsAPIService) ListSecrets(ctx context.Context) ([]secrets.Secret, error) {
|
|
return b.SDK.ListSecrets(ctx)
|
|
}
|
|
|
|
func (b *ecsAPIService) DeleteSecret(ctx context.Context, id string, recover bool) error {
|
|
return b.SDK.DeleteSecret(ctx, id, recover)
|
|
}
|