gsw

package
v0.0.0-...-ff17edd Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretWriter

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

SecretWriter provides the ability to create and update Github secrets.

func NewSecretWriter

func NewSecretWriter(client *github.Client) *SecretWriter

NewSecretWriter creates a SecretWriter that uses the Github OAuth token provided for API calls.

func (SecretWriter) Write

func (s SecretWriter) Write(owner, repo, secretName string, secretValue []byte) (string, error)

Write encrypts and writes a Github secret to Github using the API.

Jump to

Keyboard shortcuts

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