Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GitAPI ¶
type GitAPI interface { WithCredential(credential models.GitCredential) error ListOpenPullRequests(ctx context.Context, appRepoTarget models.AppRepoTarget) (models.PullRequests, error) GetPullRequest(ctx context.Context, appRepoTarget models.AppRepoTarget, prNum int) (models.PullRequest, error) CommentToPullRequest(ctx context.Context, pr models.PullRequest, comment string) error }
type GitCommand ¶
type GitCommand interface { WithCredential(credential models.GitCredential) error ForceClone(context.Context, models.InfraRepoTarget) (models.InfraRepoLocalDir, error) CreateFiles(context.Context, models.InfraRepoLocalDir, ...models.File) error DeleteFiles(context.Context, models.InfraRepoLocalDir, ...models.File) error CommitAndPush(ctx context.Context, gp models.InfraRepoLocalDir, message string) (*models.InfraRepoLocalDir, error) }
type KubernetesRepository ¶
type KubernetesRepository interface { GetApplicationTemplate(ctx context.Context, m models.ReviewAppOrReviewAppManager) (models.ApplicationTemplate, error) GetArgoCDAppFromReviewAppStatus(ctx context.Context, raStatus models.ReviewAppStatus) (models.Application, error) GetLatestJobFromLabel(ctx context.Context, namespace, labelKey, labelValue string) (*batchv1.Job, error) CreateJob(ctx context.Context, job *batchv1.Job) error GetPreStopJobTemplate(ctx context.Context, ra models.ReviewApp) (models.JobTemplate, error) GetManifestsTemplate(ctx context.Context, m models.ReviewAppOrReviewAppManager) ([]models.ManifestsTemplate, error) GetReviewApp(ctx context.Context, namespace, name string) (models.ReviewApp, error) ApplyReviewAppWithOwnerRef(ctx context.Context, ra models.ReviewApp, owner models.ReviewAppManager) error PatchReviewAppStatus(ctx context.Context, ra models.ReviewApp) error DeleteReviewApp(ctx context.Context, namespace, name string) error AddFinalizersToReviewApp(ctx context.Context, ra models.ReviewApp, finalizers ...string) error RemoveFinalizersFromReviewApp(ctx context.Context, ra models.ReviewApp, finalizers ...string) error GetReviewAppManager(ctx context.Context, namespace, name string) (models.ReviewAppManager, error) UpdateReviewAppManagerStatus(ctx context.Context, ram models.ReviewAppManager) error GetSecretValue(ctx context.Context, namespace string, m models.AppOrInfraRepoTarget) (string, error) }
Click to show internal directories.
Click to hide internal directories.