job

package
v0.0.18 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Job

type Job interface {
	Execute(context.Context) error
	GetJobName() string
}

type RunScript

type RunScript struct {
	JobName string
	Timeout time.Duration

	Script types.Script
}

func (*RunScript) Execute added in v0.0.10

func (j *RunScript) Execute(ctx context.Context) error

func (*RunScript) GetJobName added in v0.0.10

func (j *RunScript) GetJobName() string

type UpdateAWSRouteTables

type UpdateAWSRouteTables struct {
	JobName string
	Timeout time.Duration

	DestinationCidrBlocks []types.CIDR
	NetworkInterfaceID    string
	RouteTables           []string
	// contains filtered or unexported fields
}

func (*UpdateAWSRouteTables) Execute added in v0.0.10

func (j *UpdateAWSRouteTables) Execute(ctx context.Context) error

func (*UpdateAWSRouteTables) GetJobName added in v0.0.10

func (j *UpdateAWSRouteTables) GetJobName() string

type UpdateGCPRoute added in v0.0.10

type UpdateGCPRoute struct {
	JobName string
	Timeout time.Duration

	Name        string
	Description string

	DestRanges      []types.CIDR
	Network         string
	NextHopInstance string
	Priority        uint32
	Tags            []string
}

func (*UpdateGCPRoute) Execute added in v0.0.10

func (j *UpdateGCPRoute) Execute(ctx context.Context) error

func (*UpdateGCPRoute) GetJobName added in v0.0.10

func (j *UpdateGCPRoute) GetJobName() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL