views

package
v0.8.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// NamespaceMap is a map indexing the attribute names of Namespace by view name.
	NamespaceMap = map[string][]string{
		"default": {
			"name",
			"phase",
			"created_at",
		},
	}
)

Functions

func ValidateNamespaceView

func ValidateNamespaceView(result *NamespaceView) (err error)

ValidateNamespaceView runs the validations defined on NamespaceView using the "default" view.

Types

type NamespaceView

type NamespaceView struct {
	// Namespace name
	Name *string
	// Namespace phase
	Phase *string
	// Creation timestamp
	CreatedAt *string
}

NamespaceView 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