Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SshkeyMap is a map indexing the attribute names of Sshkey by view name. SshkeyMap = map[string][]string{ "default": { "name", "namespace", "key_name", "public_key", "fingerprint", "created_at", }, } )
Functions ¶
func ValidateSshkey ¶
ValidateSshkey runs the validations defined on the viewed result type Sshkey.
func ValidateSshkeyView ¶
func ValidateSshkeyView(result *SshkeyView) (err error)
ValidateSshkeyView runs the validations defined on SshkeyView using the "default" view.
Types ¶
type Sshkey ¶
type Sshkey struct {
// Type to project
Projected *SshkeyView
// View to render
View string
}
Sshkey is the viewed result type that is projected based on a view.
type SshkeyView ¶
type SshkeyView struct {
// Resource name of the SshKey CR
Name *string
// Kubernetes namespace
Namespace *string
// Human-friendly label
KeyName *string
// SSH public key line
PublicKey *string
// SHA256 fingerprint of the key
Fingerprint *string
// Creation timestamp
CreatedAt *string
}
SshkeyView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.