dkron

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provider

func Provider() terraform.ResourceProvider

Types

type Config

type Config struct {
	Host string
}

func (*Config) Client

func (c *Config) Client()

type Job

type Job struct {
	Name           string                 `json:"name"`
	Schedule       string                 `json:"schedule"`
	Owner          string                 `json:"owner"`
	OwnerEmail     string                 `json:"owner_email"`
	Disabled       bool                   `json:"disabled"`
	Tags           map[string]interface{} `json:"tags"`
	Retries        int                    `json:"retries"`
	Processors     Processors             `json:"processors"`
	Concurrency    string                 `json:"concurrency"`
	Executor       string                 `json:"executor"`
	ExecutorConfig struct {
		Command string `json:"command"`
	} `json:"executor_config"`
}

type JobResponse

type JobResponse struct {
	Name           string                 `json:"name"`
	Timezone       string                 `json:"timezone"`
	Schedule       string                 `json:"schedule"`
	Owner          string                 `json:"owner"`
	OwnerEmail     string                 `json:"owner_email"`
	SuccessCount   int                    `json:"success_count"`
	ErrorCount     int                    `json:"error_count"`
	LastSuccess    time.Time              `json:"last_success"`
	LastError      time.Time              `json:"last_error"`
	Disabled       bool                   `json:"disabled"`
	Tags           map[string]interface{} `json:"tags"`
	Retries        int                    `json:"retries"`
	DependentJobs  interface{}            `json:"dependent_jobs"`
	ParentJob      string                 `json:"parent_job"`
	Processors     Processors             `json:"processors"`
	Concurrency    string                 `json:"concurrency"`
	Executor       string                 `json:"executor"`
	ExecutorConfig struct {
		Command string `json:"command"`
	} `json:"executor_config"`
	Status string `json:"status"`
}

type Processors added in v0.3.0

type Processors struct {
	Slack map[string]interface{} `json:"slack"`
}

Jump to

Keyboard shortcuts

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