views

package
v0.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

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

func ValidateSshkey(result *Sshkey) (err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL