config

package
v0.0.0-...-c4b3958 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ManifestIntegrityConfig

type ManifestIntegrityConfig struct {
	k8smanifest.VerifyResourceOption `json:""`
	InScopeObjects                   k8smanifest.ObjectReferenceList `json:"inScopeObjects,omitempty"`
	SkipUsers                        ObjectUserBindingList           `json:"skipUsers,omitempty"`
	KeySecertName                    string                          `json:"keySecretName,omitempty"`
	KeySecertNamespace               string                          `json:"keySecretNamespace,omitempty"`
	ResourceBundleRef                string                          `json:"resourceBundleRef,omitempty"`
}

func LoadConfig

func LoadConfig(namespace, name string) (*ManifestIntegrityConfig, error)

func (*ManifestIntegrityConfig) LoadKeySecret

func (c *ManifestIntegrityConfig) LoadKeySecret() (string, error)

type ObjectUserBinding

type ObjectUserBinding struct {
	Objects k8smanifest.ObjectReferenceList `json:"objects,omitempty"`
	Users   []string                        `json:"users,omitempty"`
}

func (ObjectUserBinding) Match

func (u ObjectUserBinding) Match(obj unstructured.Unstructured, username string) bool

type ObjectUserBindingList

type ObjectUserBindingList []ObjectUserBinding

func (ObjectUserBindingList) Match

Jump to

Keyboard shortcuts

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