func (k *KeyPair) UnmarshalYAML(unmarshal func(interface{}) error) error {
	type keyPair KeyPair
	if err := unmarshal((*keyPair)(k)); err != nil {
		return err
	}
	return k.validate()
}
// UnmarshalYAML implements yaml.Unmarshaler.
UnmarshalYAML implements yaml.Unmarshaler.
// UnmarshalYAML implements yaml . Unmarshaler .
func (k *KeyPair) UnmarshalYAML(unmarshal func(interface{}) error) error {
	type keyPair KeyPair
	if err := unmarshal((*keyPair)(k)); err != nil {
		return err
	}
	return k.validate()
}
func ( k * KeyPair ) UnmarshalYAML ( unmarshal func ( interface { } ) error ) error { type keyPair KeyPair if err := unmarshal ( ( * keyPair ) ( k ) ) ; err != nil { return err } return k . validate ( ) }
UnmarshalYAML implements yaml.Unmarshaler.
UnmarshalYAML implements yaml . Unmarshaler .