envvars

package
v0.0.0-...-cb886e6 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDBEnvVarProvider

func NewDBEnvVarProvider(db *database.DB, secret string) *dbEnvVarsProvider

Types

type DBEnvVar

type DBEnvVar struct {
	ID        uuid.UUID `gorm:"type:uuid;default:gen_random_uuid();primaryKey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	Owner     string
	Repo      string
	Name      string
	Value     string
	Branch    sql.NullString
}

type EnvVar

type EnvVar struct {
	Name   string  `json:"name"`
	Value  string  `json:"value"`
	Branch *string `json:"branch"`
}

type EnvVarsProvider

type EnvVarsProvider interface {
	Upsert(ctx context.Context, owner, repo, name, value string, branch *string) error
	Delete(ctx context.Context, owner, repo, name string, branch *string) error
	ListByRepo(ctx context.Context, owner, repo string) ([]EnvVar, error)
	ListByRepoBranch(ctx context.Context, owner, repo, branch string) ([]EnvVar, error)
}

Jump to

Keyboard shortcuts

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