iomodule

package
v0.0.0-...-a9ed6da Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package iomodule implements the output modules

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandOutput

type CommandOutput struct {
	// limit to the number of bytes to be written to the output string
	OutputLimit            int
	OutputString           *string
	FileName               string
	OrchestrationDirectory string
}

CommandOutput handles writing output to a string.

func (CommandOutput) Read

func (c CommandOutput) Read(log log.T, reader *io.PipeReader)

type File

type File struct {
	FileName               string
	OrchestrationDirectory string
	OutputS3BucketName     string
	OutputS3KeyPrefix      string
}

File handles writing to an output file and upload to s3

func (File) Read

func (file File) Read(log log.T, reader *io.PipeReader)

Read reads from the stream and writes to the output file and s3.

type IOModule

type IOModule interface {
	Read(log.T, *io.PipeReader)
}

IOModule is an interface for output modules

Directories

Path Synopsis
Package iomodulemock implements the mock iomodule
Package iomodulemock implements the mock iomodule

Jump to

Keyboard shortcuts

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