Documentation ¶
Index ¶
- func AddFinalizersToReviewApp(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp, ...) error
- func ApplyReviewAppWithOwnerRef(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp, ...) error
- func CreateJob(ctx context.Context, c client.Client, job *batchv1.Job) error
- func DeleteReviewApp(ctx context.Context, c client.Client, namespace, name string) error
- func GetApplicationTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ApplicationTemplate, error)
- func GetArgoCDAppAnnotation(ctx context.Context, c client.Client, namespace, name, annotationKey string) (string, error)
- func GetJobTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.JobTemplate, error)
- func GetLatestJobFromLabel(ctx context.Context, c client.Client, namespace, labelKey, labelValue string) (*batchv1.Job, error)
- func GetManifestsTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ManifestsTemplate, error)
- func GetReviewApp(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ReviewApp, error)
- func GetReviewAppManager(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ReviewAppManager, error)
- func GetSecretValue(ctx context.Context, c client.Client, namespace, name, key string) (string, error)
- func NewReviewAppFromReviewAppManager(ram *dreamkastv1alpha1.ReviewAppManager, pr *PullRequest) *dreamkastv1alpha1.ReviewApp
- func PickJobObjectFromObjectStr(ctx context.Context, objectStr string) (*batchv1.Job, error)
- func PickNamespacedNameFromObjectStr(ctx context.Context, objectStr string) (types.NamespacedName, error)
- func PickVariablesFromReviewApp(ctx context.Context, ra *dreamkastv1alpha1.ReviewApp) map[string]string
- func PickVariablesFromReviewAppManager(ctx context.Context, ram *dreamkastv1alpha1.ReviewAppManager) map[string]string
- func RemoveFinalizersToReviewApp(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp, ...) error
- func SetAnnotationToObjectStr(ctx context.Context, objectStr string, annotationKey, annotationValue string) (string, error)
- func SetLabel(ctx context.Context, obj client.Object, labelKey, labelValue string) error
- func UpdateReviewAppManagerStatus(ctx context.Context, c client.Client, ram *dreamkastv1alpha1.ReviewAppManager) error
- func UpdateReviewAppStatus(ctx context.Context, c client.Client, ra *dreamkastv1alpha1.ReviewApp) error
- type PullRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteReviewApp ¶
func GetApplicationTemplate ¶
func GetApplicationTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ApplicationTemplate, error)
func GetArgoCDAppAnnotation ¶
func GetJobTemplate ¶ added in v0.0.7
func GetJobTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.JobTemplate, error)
func GetLatestJobFromLabel ¶ added in v0.0.7
func GetManifestsTemplate ¶
func GetManifestsTemplate(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ManifestsTemplate, error)
func GetReviewApp ¶
func GetReviewAppManager ¶
func GetReviewAppManager(ctx context.Context, c client.Client, namespace, name string) (*dreamkastv1alpha1.ReviewAppManager, error)
func GetSecretValue ¶
func NewReviewAppFromReviewAppManager ¶
func NewReviewAppFromReviewAppManager(ram *dreamkastv1alpha1.ReviewAppManager, pr *PullRequest) *dreamkastv1alpha1.ReviewApp
func PickJobObjectFromObjectStr ¶ added in v0.0.7
func PickVariablesFromReviewApp ¶ added in v0.0.3
func PickVariablesFromReviewAppManager ¶
func PickVariablesFromReviewAppManager(ctx context.Context, ram *dreamkastv1alpha1.ReviewAppManager) map[string]string
func UpdateReviewAppManagerStatus ¶
func UpdateReviewAppManagerStatus(ctx context.Context, c client.Client, ram *dreamkastv1alpha1.ReviewAppManager) error
func UpdateReviewAppStatus ¶
Types ¶
type PullRequest ¶
Click to show internal directories.
Click to hide internal directories.