utils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger      *slog.Logger
	ProjectKey  string
	AllProjects bool
	GlobalURL   string
	GlobalToken string
	EnvFile     string
	Debug       bool
	PageSize    int
	Cfg         *Config
)
View Source
var GlobalPageSize = 50

GlobalPageSize is the default page size for API pagination

View Source
var WorkerCount = 10

Functions

func Contains added in v0.2.0

func Contains(slice []string, item string) bool

func DerefBool added in v0.2.0

func DerefBool(b *bool) bool

func DerefInt32 added in v0.2.0

func DerefInt32(i *int32) string

func DerefString added in v0.2.0

func DerefString(s *string) string

func ParseColumns added in v0.2.0

func ParseColumns(cols string) []string

func SafeStr added in v0.2.0

func SafeStr(p *string) string

SafeStr safely dereferences a *string, returns empty string if nil

func SingleRepoSlice added in v0.2.0

func SingleRepoSlice(r *openapi.RestRepository) []openapi.RestRepository

Types

type Config

type Config struct {
	BitbucketURL   string
	BitbucketToken string
	ProjectKey     string
	PageSize       int
}

func LoadConfig

func LoadConfig() (*Config, error)

Jump to

Keyboard shortcuts

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