util

package
v0.42.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateClient

func CreateClient(githubToken, gitlabToken, bitbucketToken, githubURL, gitlabURL, bitbucketURL string, skipVerify bool) *scm.Client

CreateClient helper function creates a scm client

func CreateImporter

func CreateImporter(harnessAccount, harnessOrg, harnessToken, githubToken, gitlabToken, bitbucketToken, harnessAddress string) *migrate.Importer

CreateImporter helper function creates an importer

func CreateLogger

func CreateLogger(debug bool) *slog.Logger

func CreateTracerWithLevelAndType added in v0.24.0

func CreateTracerWithLevelAndType(debug bool, noProgress bool) tracer.Tracer

func WithLogger added in v0.41.0

func WithLogger(ctx context.Context, logger *slog.Logger) context.Context

WithLogger creates a new context with the logger attached

Types

This section is empty.

Jump to

Keyboard shortcuts

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