Documentation
¶
Index ¶
- Constants
- func TraverseEmbeddedPath(fs embed.FS, path string, handler func(path string, data []byte) error) error
- type GClient
- type GitHubRepositoryInfo
- func (r *GitHubRepositoryInfo) CreateBranch(t T, branch string) string
- func (r *GitHubRepositoryInfo) CreateFile(t T, branch string) string
- func (r *GitHubRepositoryInfo) Delete(t T)
- func (r *GitHubRepositoryInfo) DeleteBranch(t T, branch string)
- func (r *GitHubRepositoryInfo) GetBranchSHA(t T, branch string) string
- func (r *GitHubRepositoryInfo) SetupWebhook(t T)
- type KClient
- type KNamespace
- func (n *KNamespace) CreateApplication(t T, spec apiv1.ApplicationSpec) string
- func (n *KNamespace) CreateGitHubAuthSecret(t T, token string, restrictRole bool) (secretName, key string)
- func (n *KNamespace) CreateGitHubAuthSecretSpec(t T, token string, restrictRole bool) *apiv1.GitHubRepositoryPersonalAccessToken
- func (n *KNamespace) CreateRepository(t T, spec apiv1.RepositorySpec) string
Constants ¶
View Source
const ( DevbotNamespace = "devbot" DevbotRepositoryControllerServiceAccountName = "devbot-controller" )
View Source
const (
GitHubOwner = "devbot-testing"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GClient ¶
type GClient struct { Token string // contains filtered or unexported fields }
func (*GClient) CloneRepository ¶
func (gh *GClient) CloneRepository(t T, name string) (*GitHubRepositoryInfo, *git.Repository)
func (*GClient) CreateRepository ¶
func (gh *GClient) CreateRepository(t T, fs embed.FS, embeddedPath string) *GitHubRepositoryInfo
type GitHubRepositoryInfo ¶
type GitHubRepositoryInfo struct { Owner string Name string WebhookSecret string // contains filtered or unexported fields }
func (*GitHubRepositoryInfo) CreateBranch ¶
func (r *GitHubRepositoryInfo) CreateBranch(t T, branch string) string
func (*GitHubRepositoryInfo) CreateFile ¶
func (r *GitHubRepositoryInfo) CreateFile(t T, branch string) string
func (*GitHubRepositoryInfo) Delete ¶
func (r *GitHubRepositoryInfo) Delete(t T)
func (*GitHubRepositoryInfo) DeleteBranch ¶
func (r *GitHubRepositoryInfo) DeleteBranch(t T, branch string)
func (*GitHubRepositoryInfo) GetBranchSHA ¶
func (r *GitHubRepositoryInfo) GetBranchSHA(t T, branch string) string
func (*GitHubRepositoryInfo) SetupWebhook ¶
func (r *GitHubRepositoryInfo) SetupWebhook(t T)
type KClient ¶
type KClient struct { Client client.Client Manager manager.Manager // contains filtered or unexported fields }
func (*KClient) CreateNamespace ¶
func (k *KClient) CreateNamespace(t T) *KNamespace
type KNamespace ¶
type KNamespace struct { Name string // contains filtered or unexported fields }
func (*KNamespace) CreateApplication ¶
func (n *KNamespace) CreateApplication(t T, spec apiv1.ApplicationSpec) string
func (*KNamespace) CreateGitHubAuthSecret ¶
func (n *KNamespace) CreateGitHubAuthSecret(t T, token string, restrictRole bool) (secretName, key string)
func (*KNamespace) CreateGitHubAuthSecretSpec ¶
func (n *KNamespace) CreateGitHubAuthSecretSpec(t T, token string, restrictRole bool) *apiv1.GitHubRepositoryPersonalAccessToken
func (*KNamespace) CreateRepository ¶
func (n *KNamespace) CreateRepository(t T, spec apiv1.RepositorySpec) string
Click to show internal directories.
Click to hide internal directories.