INNER CODE UNIT · Go

func

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

func (l *MatchBehavior) Decode(v string) error {
	switch v {
	case "match", "one-of":
		*l = MatchBehavior(v)
		return nil
	default:
		return errwrap.Wrap(nil, fmt.Sprintf("unknown match behavior '%s', expected one of 'match', 'one-of'", v))
	}
}

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

type CertDecoder struct {
	Cert *x509.Certificate
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…