gcsmakebucket

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: 10 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 Payload

type Payload struct {
	Name            string `json:"name"`
	ProjectId       string `json:"projectId"`
	GsUri           string `json:"gsUri"`
	CloudConsoleUri string `json:"cloudConsoleUri"`
}

type RequestBody

type RequestBody struct {
	Name                     string            `json:"name"`
	Labels                   map[string]string `json:"labels,omitempty"`
	UniformBucketLevelAccess bool              `json:"uniformBucketLevelAccess,omitempty"`
	Class                    string            `json:"class,omitempty"`
	VersioningEnabled        bool              `json:"versioningEnabled,omitempty"`
	Location                 string            `json:"location,omitempty"`
	LocationType             string            `json:"locationType,omitempty"`
	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 {
	Payload Payload             `json:"payload"`
	Headers map[string][]string `json:"headers"`
}

Jump to

Keyboard shortcuts

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