Documentation ¶ Index ¶ func ToJson(policy kyvernov1.PolicyInterface) ([]byte, error) func ToYaml(policy kyvernov1.PolicyInterface) ([]byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func ToJson ¶ func ToJson(policy kyvernov1.PolicyInterface) ([]byte, error) ToJson marshals a policy into corresponding json bytes. func ToYaml ¶ func ToYaml(policy kyvernov1.PolicyInterface) ([]byte, error) ToYaml marshals a policy into corresponding yaml bytes. If firsts converts the policy to json because some internal structures have custom json marshalling functions, then it converts json to yaml. Types ¶ This section is empty. Source Files ¶ View all Source files marshal.go Click to show internal directories. Click to hide internal directories.