Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGithubClient ¶
NewGithubClient returns a new Github client. If a GITHUB_TOKEN environment variable is set, it will use that token. Otherwise, it will use the provider secret. If neither are set, it will create an anonymous client.
Types ¶
type GitProviderCreds ¶
type GitProviderCreds struct {
Token string
}
GitProviderCreds is the struct that holds the credentials for the Git provider
func GetGitProviderCreds ¶
func GetGitProviderCreds(s *common.Secret, store *secrets.SecretStore, logger *slog.Logger) (GitProviderCreds, error)
GetGitProviderCreds loads the Git provider credentials from the given secret.
type GithubProviderCreds ¶
type GithubProviderCreds struct {
Token string
}
GithubProviderCreds is the struct that holds the credentials for the Github provider
func GetGithubProviderCreds ¶
GetGithubProviderCreds loads the Github provider credentials from the project.
Click to show internal directories.
Click to hide internal directories.