v1beta1

package
v0.28.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package v1beta1 contains the v1beta1 API types for kat configuration.

Index

Constants

View Source
const APIVersion = "kat.jacobcolvin.com/v1beta1"

APIVersion is the current API version for all kat configuration kinds.

Variables

View Source
var ValidAPIVersions = []string{APIVersion}

ValidAPIVersions contains all valid API versions.

Functions

func ExtendSchemaWithEnums

func ExtendSchemaWithEnums(jss *jsonschema.Schema, apiVersions, kinds []string)

ExtendSchemaWithEnums adds apiVersion and kind enum constraints to a JSON schema.

Types

type Object

type Object interface {
	GetAPIVersion() string
	GetKind() string
	EnsureDefaults()
}

Object is the interface that all config types implement.

type TypeMeta

type TypeMeta struct {
	// APIVersion specifies the API version for this configuration.
	APIVersion string `json:"apiVersion" jsonschema:"title=API Version"`
	// Kind defines the type of configuration.
	Kind string `json:"kind" jsonschema:"title=Kind"`
}

TypeMeta contains the API version and kind metadata common to all config types.

func (TypeMeta) GetAPIVersion

func (tm TypeMeta) GetAPIVersion() string

GetAPIVersion returns the API version.

func (TypeMeta) GetKind

func (tm TypeMeta) GetKind() string

GetKind returns the kind.

Directories

Path Synopsis
Package configs provides the global Config configuration type for kat.
Package configs provides the global Config configuration type for kat.
Package policies provides the Policy configuration type for kat.
Package policies provides the Policy configuration type for kat.
Package runtimeconfigs provides the RuntimeConfig configuration type for kat.
Package runtimeconfigs provides the RuntimeConfig configuration type for kat.

Jump to

Keyboard shortcuts

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