Documentation ¶
Index ¶
- func CreateTempFile() (file *os.File, err error)
- func DecryptWriteToFileAndChecksum(file *os.File, src io.Reader, password []byte) (sum []byte, err error)
- func ScheduleJobs(jobs []Job)
- func WriteToFileAndChecksum(file *os.File, src io.Reader) (sum []byte, err error)
- type Decryption
- type Expect
- type File
- type HTTPResource
- type Job
- func (job *Job) CalculateFileChecksum() (sum []byte, err error)
- func (job *Job) ExecuteTrigger() (err error)
- func (job *Job) FinalizePlacement(tempFile *os.File) (err error)
- func (job *Job) HandleHTTPResource() (changed bool, err error)
- func (job *Job) HandleS3Resource() (changed bool, err error)
- func (job *Job) Run()
- func (job *Job) UpdateFile(src io.ReadCloser) (changed bool, err error)
- type Permissions
- type Resource
- type S3Resource
- type Schedule
- type Trigger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempFile ¶
func ScheduleJobs ¶
func ScheduleJobs(jobs []Job)
Types ¶
type Decryption ¶
type Decryption struct {
Password []byte
}
type File ¶
type File struct { Path string Permissions Permissions }
type HTTPResource ¶
type HTTPResource struct { URL string Method string Headers map[string][]string Expect Expect Timeout time.Duration Body []byte MaxAttempts int // contains filtered or unexported fields }
func (*HTTPResource) AddHeaders ¶
func (resource *HTTPResource) AddHeaders(req *http.Request)
type Job ¶
func (*Job) CalculateFileChecksum ¶
func (*Job) ExecuteTrigger ¶
func (*Job) HandleHTTPResource ¶
func (*Job) HandleS3Resource ¶
func (*Job) UpdateFile ¶
func (job *Job) UpdateFile(src io.ReadCloser) (changed bool, err error)
type Resource ¶
type Resource struct { Type string Decryption Decryption HTTP *HTTPResource S3 *S3Resource }
type S3Resource ¶
Click to show internal directories.
Click to hide internal directories.