INNER CODE UNIT · Go

func

offen/docker-volume-backup · cmd/backup/config.go:112

func (l *S3BucketLookup) Decode(v string) error {
	switch v {
	case "auto", "dns", "virtual", "path":
		*l = S3BucketLookup(v)
		return nil
	default:
		return errwrap.Wrap(nil, fmt.Sprintf("unknown bucket lookup '%s', expected one of 'auto', 'dns', 'virtual', 'path'", v))
	}
}

func (l *S3BucketLookup) String() string {
	return string(*l)
}

type CompressionType string

func (c *CompressionType) Decode(v string) error {
	switch v {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…