Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalWithFormat ¶
func MarshalWithFormat(content any, format OutputFormat) ([]byte, error)
func MustPolicyManagerForTest ¶
func MustPolicyManagerForTest(t *testing.T, fakeClients *common.K8sClients) *policymanager.PolicyManager
Types ¶
type Factory ¶
type Factory interface { K8sClients() (*common.K8sClients, error) PolicyManager() (*policymanager.PolicyManager, error) }
Factory encapsulates the common clients and structures which are needed for the execution of some command.
func NewFactory ¶
type OutputFormat ¶
type OutputFormat string
const ( OutputFormatWide OutputFormat = "wide" OutputFormatJSON OutputFormat = "json" OutputFormatYAML OutputFormat = "yaml" OutputFormatTable OutputFormat = "" )
func ValidateAndReturnOutputFormat ¶
func ValidateAndReturnOutputFormat(format string) (OutputFormat, error)
Click to show internal directories.
Click to hide internal directories.