redact

package
v1.34.0 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteRedact

func DeleteRedact(slug string) error

func GetRedact

func GetRedact() (*troubleshootv1beta2.Redactor, error)

func GetRedactInfo

func GetRedactInfo() ([]types.RedactorList, error)

func GetRedactSpec

func GetRedactSpec() (string, string, error)

GetRedactSpec returns the redaction yaml spec, a pretty error string, and the underlying error

func GetRedactSpecURI added in v1.33.2

func GetRedactSpecURI() string

func SetRedactSpec

func SetRedactSpec(spec string) (string, error)

SetRedactSpec sets the global redact spec to the specified string, and returns a pretty error string + the underlying error

func WriteRedactSpecConfigMap added in v1.33.2

func WriteRedactSpecConfigMap() error

WriteRedactSpecConfigMap creates a configmap that contains the redaction yaml spec auto-generated from "kotsadm-redact" configmap when collecting support bundles. contains the full redact spec type that is supported by troubleshoot.

Types

type RedactorMetadata

type RedactorMetadata struct {
	Metadata types.RedactorList `json:"metadata"`

	Redact string `json:"redact"`
}

func GetRedactBySlug

func GetRedactBySlug(slug string) (*RedactorMetadata, error)

func SetRedactEnabled

func SetRedactEnabled(slug string, enabled bool) (*RedactorMetadata, error)

sets whether an individual redactor is enabled

func SetRedactYaml

func SetRedactYaml(slug, description string, enabled, newRedact bool, yamlBytes []byte) (*RedactorMetadata, error)

updates/creates an individual redact with the provided metadata and yaml

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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