gsw

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: MIT Imports: 8 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(token string) *SecretWriter

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

func (SecretWriter) Write

func (s SecretWriter) Write(owner, repo, sname string, svalue []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