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: 0 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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