secrets

package
v0.0.0-...-622e1da Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitHubWorkflowSecretsTableName = "GitHubWorkflowSecrets"
	GitHubRunId                    = "runId"
	GitHubOwner                    = "owner"
	GitHubRepo                     = "repo"
)

Variables

This section is empty.

Functions

func DeleteSecrets

func DeleteSecrets(authHeader string, svc dynamodbiface.DynamoDBAPI) error

func SetSecrets

func SetSecrets(body string, svc dynamodbiface.DynamoDBAPI) error

Types

type GitHubWorkflowSecrets

type GitHubWorkflowSecrets struct {
	Repo           string   `json:"repo"`
	RunId          string   `json:"runId"`
	AreSecretsSet  bool     `json:"areSecretsSet"`
	Secrets        []Secret `json:"secrets"`
	Ref            string   `json:"ref"`
	RefType        string   `json:"ref_type"`
	Workflow       string   `json:"workflow"`
	EventName      string   `json:"event_name"`
	JobWorkflowRef string   `json:"job_workflow_ref"`
}

func GetSecrets

func GetSecrets(queryStringParams map[string]string, authHeader string, svc dynamodbiface.DynamoDBAPI, skipValidation bool) (*GitHubWorkflowSecrets, error)

func InitSecrets

func InitSecrets(body string, authHeader string, svc dynamodbiface.DynamoDBAPI) (*GitHubWorkflowSecrets, error)

type Secret

type Secret struct {
	Name        string
	SecretName  string
	Description string
	Value       string
}

Jump to

Keyboard shortcuts

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