Documentation

Overview

    Package gs exports helpers to upload log data to Google Storage.

    Index

    Constants

    This section is empty.

    Variables

    This section is empty.

    Functions

    This section is empty.

    Types

    type DirWriter

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

      DirWriter exposes methods to write a local directory to Google Storage.

      func NewDirWriter

      func NewDirWriter(client gsClient, maxConcurrentUploads int) *DirWriter

        NewDirWriter creates an object which can write a directory and its subdirectories to the given Google Storage path

        func (*DirWriter) WriteDir

        func (w *DirWriter) WriteDir(ctx context.Context, srcDir string, dstDir gcgs.Path) error

          WriteDir writes a local directory to Google Storage.

          If ctx is canceled, WriteDir() returns after completing in-flight uploads, skipping remaining contents of the directory and returns ctx.Err().

          GOOS=linux, GOARCH=amd64

          Source Files