misc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetActiveVersion

func GetActiveVersion(bucket, object string) string

func GetObject

func GetObject(ctx context.Context, bucket, object string) *storage.ObjectHandle

func GetObjectContents

func GetObjectContents(bucket, object string) string

func GetObjectStdout

func GetObjectStdout(bucket, object string)

func GithubRelease

func GithubRelease(args GithubArgs) error

func IncrementVersion

func IncrementVersion(v string) string

func PubsubPushBuild

func PubsubPushBuild(project, v string)

func SetObject

func SetObject(bucket, object, contents string) error

uploadFile uploads an object.

func SyncDown

func SyncDown(bucket, prefix string)

Types

type BuildCommand

type BuildCommand struct {
	Command string `json:"command"`
	Version string `json:"cloud_sdk_version"`
}

type GithubArgs

type GithubArgs struct {
	Owner, Repo, Commit, File, Tag, KeyPath, SignatureFile string
}

type GithubTransport added in v0.0.2

type GithubTransport struct {
	T http.RoundTripper
}

func (*GithubTransport) RoundTrip added in v0.0.2

func (adt *GithubTransport) RoundTrip(req *http.Request) (*http.Response, error)

type KMSArgs

type KMSArgs struct {
	Filename, Output, Keypath string
}

type ReleaseAsset added in v0.0.2

type ReleaseAsset struct {
	URL                string    `json:"url"`
	BrowserDownloadURL string    `json:"browser_download_url"`
	ID                 int       `json:"id"`
	NodeID             string    `json:"node_id"`
	Name               string    `json:"name"`
	Label              string    `json:"label"`
	State              string    `json:"state"`
	ContentType        string    `json:"content_type"`
	Size               int       `json:"size"`
	DownloadCount      int       `json:"download_count"`
	CreatedAt          time.Time `json:"created_at"`
	UpdatedAt          time.Time `json:"updated_at"`
	Uploader           struct {
		Login             string `json:"login"`
		ID                int    `json:"id"`
		NodeID            string `json:"node_id"`
		AvatarURL         string `json:"avatar_url"`
		GravatarID        string `json:"gravatar_id"`
		URL               string `json:"url"`
		HTMLURL           string `json:"html_url"`
		FollowersURL      string `json:"followers_url"`
		FollowingURL      string `json:"following_url"`
		GistsURL          string `json:"gists_url"`
		StarredURL        string `json:"starred_url"`
		SubscriptionsURL  string `json:"subscriptions_url"`
		OrganizationsURL  string `json:"organizations_url"`
		ReposURL          string `json:"repos_url"`
		EventsURL         string `json:"events_url"`
		ReceivedEventsURL string `json:"received_events_url"`
		Type              string `json:"type"`
		SiteAdmin         bool   `json:"site_admin"`
	} `json:"uploader"`
}

func ReleaseAssetResponse added in v0.0.2

func ReleaseAssetResponse(res *http.Response) (*ReleaseAsset, error)

Jump to

Keyboard shortcuts

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