github

package
v0.0.0-...-3482b3c Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2026 License: MIT Imports: 21 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitHubClient

type GitHubClient struct {
	Owner      string `yaml:"owner,omitempty" json:"owner,omitempty"`
	Repo       string `yaml:"repo,omitempty" json:"repo,omitempty"`
	Env        string `yaml:"env,omitempty" json:"env,omitempty"`
	Org        bool   `yaml:"org,omitempty" json:"org,omitempty"`
	Dependabot bool   `yaml:"dependabot,omitempty" json:"dependabot,omitempty"`
	Merge      *bool  `yaml:"merge,omitempty" json:"merge,omitempty"`

	InstallId        int    `yaml:"installId,omitempty" json:"installId,omitempty"`
	AppId            int    `yaml:"appId,omitempty" json:"appId,omitempty"`
	PrivateKeyPath   string `yaml:"privateKeyPath,omitempty" json:"privateKeyPath,omitempty"`
	PrivateKeyString string `yaml:"privateKey,omitempty" json:"privateKey,omitempty"`

	OrgInstallIds map[string]int `yaml:"orgInstallIds,omitempty" json:"orgInstallIds,omitempty"`
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg *GitHubClient) (*GitHubClient, error)

func (*GitHubClient) Close

func (c *GitHubClient) Close() error

func (*GitHubClient) CreateClient

func (g *GitHubClient) CreateClient(ctx context.Context) error

func (*GitHubClient) DeepCopy

func (in *GitHubClient) DeepCopy() *GitHubClient

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GitHubClient.

func (*GitHubClient) DeepCopyInto

func (in *GitHubClient) DeepCopyInto(out *GitHubClient)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*GitHubClient) DeleteSecret

func (g *GitHubClient) DeleteSecret(ctx context.Context, secret string) error

func (*GitHubClient) Driver

func (g *GitHubClient) Driver() driver.DriverName

func (*GitHubClient) EncryptDependabotSecret

func (g *GitHubClient) EncryptDependabotSecret(ctx context.Context, name, plainText string) (*github.DependabotEncryptedSecret, error)

func (*GitHubClient) EncryptSecret

func (g *GitHubClient) EncryptSecret(ctx context.Context, name, plainText string) (*github.EncryptedSecret, error)

func (*GitHubClient) GetDependabotPublicKey

func (g *GitHubClient) GetDependabotPublicKey(ctx context.Context) (*github.PublicKey, error)

func (*GitHubClient) GetEnvPublicKey

func (g *GitHubClient) GetEnvPublicKey(ctx context.Context) (*github.PublicKey, error)

func (*GitHubClient) GetOrgPublicKey

func (g *GitHubClient) GetOrgPublicKey(ctx context.Context) (*github.PublicKey, error)

func (*GitHubClient) GetPath

func (g *GitHubClient) GetPath() string

func (*GitHubClient) GetRepoPublicKey

func (g *GitHubClient) GetRepoPublicKey(ctx context.Context) (*github.PublicKey, error)

func (*GitHubClient) GetSecret

func (g *GitHubClient) GetSecret(ctx context.Context, p string) ([]byte, error)

func (*GitHubClient) Init

func (g *GitHubClient) Init(ctx context.Context) error

func (*GitHubClient) ListSecrets

func (g *GitHubClient) ListSecrets(ctx context.Context, p string) ([]string, error)

func (*GitHubClient) Meta

func (vc *GitHubClient) Meta() map[string]any

func (*GitHubClient) RepoID

func (g *GitHubClient) RepoID(ctx context.Context) (int64, error)

func (*GitHubClient) SetDefaults

func (c *GitHubClient) SetDefaults(cfg any) error

func (*GitHubClient) Validate

func (c *GitHubClient) Validate() error

func (*GitHubClient) WriteSecret

func (g *GitHubClient) WriteSecret(ctx context.Context, meta metav1.ObjectMeta, path string, bSecrets []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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