{"modulePath":"github.com/docker/compose-cli","version":"v0.1.14","isLatest":false,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package secrets\n\n## Types\n\n```go\ntype Secret struct {\n\tID          string            `json:\"ID\"`\n\tName        string            `json:\"Name\"`\n\tLabels      map[string]string `json:\"Labels\"`\n\tDescription string            `json:\"Description\"`\n\t// contains filtered or unexported fields\n}\n```\nSecret hold sensitive data\n\n```go\nfunc NewSecret(name, username, password, description string) Secret\n```\nNewSecret builds a secret\n\n```go\nfunc (s Secret) GetCredString() (string, error)\n```\nGetCredString marshall a Secret's sensitive data into JSON string\n\n```go\nfunc (s Secret) ToJSON() (string, error)\n```\nToJSON marshall a Secret into JSON string\n\n```go\ntype Service interface {\n\tCreateSecret(ctx context.Context, secret Secret) (string, error)\n\tInspectSecret(ctx context.Context, id string) (Secret, error)\n\tListSecrets(ctx context.Context) ([]Secret, error)\n\tDeleteSecret(ctx context.Context, id string, recover bool) error\n}\n```\nService interacts with the underlying secrets backend\n\n","path":"github.com/docker/compose-cli/secrets","name":"secrets","synopsis":"","isRedistributable":true}
