files

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlipRequest

type FlipRequest struct {
	Image remototypes.File `json:"image"`
}

FlipRequest is the request for Images.Flip.

func (*FlipRequest) SetImage

func (s *FlipRequest) SetImage(ctx context.Context, filename string, r io.Reader) context.Context

SetImage sets the file for the Image field.

type ImagesClient

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

ImagesClient accesses remote Images services.

func NewImagesClient

func NewImagesClient(endpoint string, client *http.Client) *ImagesClient

NewImagesClient makes a new ImagesClient that will use the specified http.Client to make requests.

func (*ImagesClient) Flip

func (c *ImagesClient) Flip(ctx context.Context, request *FlipRequest) (io.ReadCloser, error)

Jump to

Keyboard shortcuts

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