Documentation
¶
Index ¶
Constants ¶
View Source
const (
DefaultBranchName = "main"
)
Variables ¶
This section is empty.
Functions ¶
func GetGitProvider ¶ added in v0.5.0
Types ¶
type GiteaClient ¶
type GiteaClient interface {
CreateAccessToken(option gitea.CreateAccessTokenOption) (*gitea.AccessToken, *gitea.Response, error)
CreateOrg(opt gitea.CreateOrgOption) (*gitea.Organization, *gitea.Response, error)
CreateRepo(opt gitea.CreateRepoOption) (*gitea.Repository, *gitea.Response, error)
DeleteOrg(orgname string) (*gitea.Response, error)
DeleteRepo(owner, repo string) (*gitea.Response, error)
GetOrg(orgname string) (*gitea.Organization, *gitea.Response, error)
GetRepo(owner, reponame string) (*gitea.Repository, *gitea.Response, error)
SetBasicAuth(username, password string)
SetContext(ctx context.Context)
}
func NewGiteaClient ¶
func NewGiteaClient(url string, options ...gitea.ClientOption) (GiteaClient, error)
type GiteaClientFunc ¶
type GiteaClientFunc func(url string, options ...gitea.ClientOption) (GiteaClient, error)
type RepositoryReconciler ¶
type RepositoryReconciler struct {
client.Client
Recorder record.EventRecorder
Scheme *runtime.Scheme
Config v1alpha1.BuildCustomizationSpec
GitProviderFunc gitProviderFunc
TempDir string
RepoMap *util.RepoMap
}
func (*RepositoryReconciler) SetupWithManager ¶
func (r *RepositoryReconciler) SetupWithManager(mgr ctrl.Manager, notifyChan chan event.GenericEvent) error
Click to show internal directories.
Click to hide internal directories.