Documentation
¶
Index ¶
- func CompilePolicy(path string) (*circuitfactory.Circuit, error)
- func FetchPolicyFromCR(crPath string) (string, error)
- func GenerateDotFile(circuit *circuitfactory.Circuit, dotFilePath string) error
- func GenerateMermaidFile(circuit *circuitfactory.Circuit, mermaidFile string) error
- func GetKubeConfig(kubeConfig string) (*rest.Config, error)
- func ResolveLatestVersion() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompilePolicy ¶
func CompilePolicy(path string) (*circuitfactory.Circuit, error)
CompilePolicy compiles the policy and returns the circuit.
func FetchPolicyFromCR ¶
FetchPolicyFromCR extracts the spec key from a CR and saves it to a temp file.
func GenerateDotFile ¶
func GenerateDotFile(circuit *circuitfactory.Circuit, dotFilePath string) error
GenerateDotFile generates a DOT file from the circuit.
func GenerateMermaidFile ¶
func GenerateMermaidFile(circuit *circuitfactory.Circuit, mermaidFile string) error
GenerateMermaidFile generates a mermaid file from the circuit.
func GetKubeConfig ¶ added in v0.23.0
GetKubeConfig prepares Kubernetes config to connect with the cluster using provided or default kube config file location.
func ResolveLatestVersion ¶ added in v0.23.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.