Documentation ¶
Index ¶
- func WithContainer(name, imageRef string, containerOptions ...containerOption) (option kubernetesJobOption)
- func WithEnvironmentVariable(key, value string) (option containerOption)
- func WithHostPathVolume(name, hostPath string) (option kubernetesJobOption)
- func WithImagePullSecrets(names ...string) (option kubernetesJobOption)
- func WithLabel(key, value string) (option kubernetesJobOption)
- func WithServiceAccount(name string) (option kubernetesJobOption)
- func WithVolumeMount(volumeName, mountPath string) (option containerOption)
- type KubernetesJob
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithContainer ¶
func WithContainer(name, imageRef string, containerOptions ...containerOption) ( option kubernetesJobOption, )
func WithEnvironmentVariable ¶
func WithEnvironmentVariable(key, value string) (option containerOption)
func WithHostPathVolume ¶
func WithHostPathVolume(name, hostPath string) (option kubernetesJobOption)
func WithImagePullSecrets ¶
func WithImagePullSecrets(names ...string) (option kubernetesJobOption)
func WithServiceAccount ¶
func WithServiceAccount(name string) (option kubernetesJobOption)
func WithVolumeMount ¶
func WithVolumeMount(volumeName, mountPath string) (option containerOption)
Types ¶
type KubernetesJob ¶
type KubernetesJob struct {
// contains filtered or unexported fields
}
func NewKubernetesJob ¶
func NewKubernetesJob( name, kubeconfigPath string, options ...kubernetesJobOption, ) ( j *KubernetesJob, e error, )
func (*KubernetesJob) Destroy ¶
func (j *KubernetesJob) Destroy() (e error)
Click to show internal directories.
Click to hide internal directories.