github

package
v0.0.0-...-9009645 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 19 Imported by: 0

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"`
	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"`
	// 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) EncryptSecret

func (g *GitHubClient) EncryptSecret(ctx context.Context, name, plainText string) (*github.EncryptedSecret, 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