gcscpbucket

package module
v0.0.0-...-6d938a6 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Serve

func Serve(w http.ResponseWriter, r *http.Request)

Types

type RequestBody

type RequestBody struct {
	SrcBucket    string `json:"srcBucket"`
	DstBucket    string `json:"dstBucket"`
	ProjectId    string `json:"projectId"`
	JsonKeyPath  string `json:"jsonKeyPath,omitempty"`
	SlackToken   string `json:"slackToken,omitempty"`
	SlackChannel string `json:"slackChannel,omitempty"`
	SlackEmoji   string `json:"slackEmoji,omitempty"`
}

type Response

type Response struct {
	Result  []Result            `json:"result"`
	Total   int64               `json:"totalSize"`
	Headers map[string][]string `json:"headers"`
}

type Result

type Result struct {
	SrcObj    string `json:"srcObj"`
	Completed bool   `json:"completed"`
	Error     string `json:"error,omitempty"`
}

Jump to

Keyboard shortcuts

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