Documentation ¶
Index ¶
Constants ¶
View Source
const ( Ansible = "ansible" AwxPrefix = "_awx." AwxInventory = AwxPrefix + "inventory" AwxHost = AwxPrefix + "host" AwxUsername = AwxPrefix + "username" AwxPassword = AwxPrefix + "password" )
View Source
const ( KubernetesNamespace = "_kubernetes.namespace" // optional (defaults to "tko") KubernetesPod = "_kubernetes.pod" // required KubernetesContainer = "_kubernetes.container" // optional (defaults to _kubernetes.pod) DefaultKubernetesNamespace = "tko" )
View Source
const Command = "command"
View Source
const Kpt = "kpt"
View Source
const PluginTypesDescription = "\"validate\", \"prepare\", or \"schedule\""
Variables ¶
This section is empty.
Functions ¶
func IsValidPluginType ¶
Types ¶
type AnsibleExecutor ¶
type AnsibleExecutor struct { JobTemplate string Inventory string ExtraVars map[string]any AWX AWX }
func NewAnsibleExecutor ¶
func NewAnsibleExecutor(arguments []string, properties map[string]string) (*AnsibleExecutor, error)
func (*AnsibleExecutor) Execute ¶
func (self *AnsibleExecutor) Execute(context contextpkg.Context, input any) error
type CommandExecutor ¶
type CommandExecutor struct {
*Runner
}
func NewCommandExecutor ¶
func NewCommandExecutor(arguments []string, properties map[string]string) (*CommandExecutor, error)
func (*CommandExecutor) Execute ¶
func (self *CommandExecutor) Execute(context contextpkg.Context, input any, output any) error
type KptExecutor ¶
type KptExecutor struct {
*Runner
}
func NewKptExecutor ¶
func NewKptExecutor(arguments []string, properties map[string]string) (*KptExecutor, error)
func (*KptExecutor) Execute ¶
func (self *KptExecutor) Execute(context contextpkg.Context, targetResourceIdentifer util.ResourceIdentifier, package_ util.Package) (util.Package, error)
type KubernetesREST ¶
func GetKubernetesREST ¶
func GetKubernetesREST() (*KubernetesREST, error)
func NewKubernetesREST ¶
func NewKubernetesREST() (*KubernetesREST, error)
Click to show internal directories.
Click to hide internal directories.