Documentation ¶
Index ¶
- type GitHubClient
- func (c *GitHubClient) Close() error
- func (g *GitHubClient) CreateClient(ctx context.Context) error
- func (in *GitHubClient) DeepCopy() *GitHubClient
- func (in *GitHubClient) DeepCopyInto(out *GitHubClient)
- func (g *GitHubClient) DeleteSecret(ctx context.Context, secret string) error
- func (g *GitHubClient) Driver() driver.DriverName
- func (g *GitHubClient) EncryptSecret(ctx context.Context, name, plainText string) (*github.EncryptedSecret, error)
- func (g *GitHubClient) GetEnvPublicKey(ctx context.Context) (*github.PublicKey, error)
- func (g *GitHubClient) GetOrgPublicKey(ctx context.Context) (*github.PublicKey, error)
- func (g *GitHubClient) GetPath() string
- func (g *GitHubClient) GetRepoPublicKey(ctx context.Context) (*github.PublicKey, error)
- func (g *GitHubClient) GetSecret(ctx context.Context, p string) ([]byte, error)
- func (g *GitHubClient) Init(ctx context.Context) error
- func (g *GitHubClient) ListSecrets(ctx context.Context, p string) ([]string, error)
- func (vc *GitHubClient) Meta() map[string]any
- func (g *GitHubClient) RepoID(ctx context.Context) (int64, error)
- func (c *GitHubClient) SetDefaults(cfg any) error
- func (c *GitHubClient) Validate() error
- func (g *GitHubClient) WriteSecret(ctx context.Context, meta metav1.ObjectMeta, path string, bSecrets []byte) ([]byte, error)
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 (*GitHubClient) GetOrgPublicKey ¶
func (*GitHubClient) GetPath ¶
func (g *GitHubClient) GetPath() string
func (*GitHubClient) GetRepoPublicKey ¶
func (*GitHubClient) ListSecrets ¶
func (*GitHubClient) Meta ¶
func (vc *GitHubClient) Meta() map[string]any
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)
Click to show internal directories.
Click to hide internal directories.