notification

package
v1.14.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 9, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError added in v1.14.0

func IsNotFoundError(err error) bool

Types

type Client

type Client interface {
	CreateComment(ctx context.Context, comment Comment, app argocdv1alpha1.Application) error
	CreateDeployment(ctx context.Context, ds DeploymentStatus) error
	CheckIfDeploymentIsAlreadyHealthy(ctx context.Context, deploymentURL string) (bool, error)
}

func NewClient

func NewClient(ghc github.Client) Client

type Comment added in v1.14.3

type Comment struct {
	GitHubRepository github.Repository
	Revision         string
	Body             string
}

func NewCommentOnOnHealthChanged added in v1.14.3

func NewCommentOnOnHealthChanged(app argocdv1alpha1.Application, argocdURL string) *Comment

func NewCommentOnOnPhaseChanged added in v1.14.3

func NewCommentOnOnPhaseChanged(app argocdv1alpha1.Application, argocdURL string) *Comment

type DeploymentStatus added in v1.14.3

type DeploymentStatus struct {
	GitHubDeployment       github.Deployment
	GitHubDeploymentStatus github.DeploymentStatus
}

func NewDeploymentStatusOnDeletion added in v1.14.3

func NewDeploymentStatusOnDeletion(app argocdv1alpha1.Application, argocdURL string) *DeploymentStatus

func NewDeploymentStatusOnHealthChanged added in v1.14.3

func NewDeploymentStatusOnHealthChanged(app argocdv1alpha1.Application, argocdURL string) *DeploymentStatus

func NewDeploymentStatusOnPhaseChanged added in v1.14.3

func NewDeploymentStatusOnPhaseChanged(app argocdv1alpha1.Application, argocdURL string) *DeploymentStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL