Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultBranchName = "main"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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 GiteaClientFunc GiteaClientFunc Recorder record.EventRecorder Scheme *runtime.Scheme }
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.