util

package
v0.0.0-...-c437400 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2025 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateNewArgoCDInstance

func CreateNewArgoCDInstance(ctx context.Context, namespace *corev1.Namespace, user db.ClusterUser, k8sclient client.Client,
	log logr.Logger, dbQueries db.AllDatabaseQueries) error

func CreateWebHook

func CreateWebHook(personalAccessToken string, authorUsername string, authorName string, repoName string, hookURL string) error

Parameters:

personalAccessToken : This points to the personal access token (PAT) assigned from the GitHub with the repo access atleast
authorUsername 		: The author git username (a/c to the PAT)
authorName 			: The author full name registered (a/c to the PAT)
repoName 			: The repository name on which the hook will be defined
hookURL 			: This points to the payloadURL on which github will POST request

func WaitForServerUp

func WaitForServerUp(serverURL string) error

Types

type TokenSource

type TokenSource struct {
	AccessToken string
}

func (*TokenSource) Token

func (t *TokenSource) Token() (*oauth2.Token, error)

Jump to

Keyboard shortcuts

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