out

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OutCommand

type OutCommand struct {
	// contains filtered or unexported fields
}

func NewOutCommand

func NewOutCommand(gcsClient gcsresource.GCSClient) *OutCommand

func (*OutCommand) Run

func (command *OutCommand) Run(sourceDir string, request OutRequest) (OutResponse, error)

type OutRequest

type OutRequest struct {
	Source gcsresource.Source `json:"source"`
	Params Params             `json:"params"`
}

type OutResponse

type OutResponse struct {
	Version  gcsresource.Version        `json:"version"`
	Metadata []gcsresource.MetadataPair `json:"metadata"`
}

type Params

type Params struct {
	File          string `json:"file"`
	PredefinedACL string `json:"predefined_acl"`
	ContentType   string `json:"content_type"`
}

func (Params) IsValid

func (params Params) IsValid() (bool, string)

Jump to

Keyboard shortcuts

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