utils

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfig added in v0.12.0

func GetConfig() (string, int, error)

func GetTimezone added in v0.19.0

func GetTimezone() (*time.Location, error)

func GetToken added in v0.16.0

func GetToken() (string, error)

func RenderTable

func RenderTable(
	title string,
	headers []interface{},
	rows [][]interface{},
	footer table.Row,
)

RenderTable renders a table to the standard output. It takes headers and rows as parameters.

Types

type SevenPaceConfig added in v0.19.0

type SevenPaceConfig struct {
	BaseURL         string
	Domain          string
	Username        string
	Password        string
	ActivityTypeID  string
	InsecureSkipTLS bool
}

SevenPaceConfig holds the settings for talking to an on-prem 7pace Timetracker instance using NTLM (Windows) authentication.

func GetSevenPaceConfig added in v0.19.0

func GetSevenPaceConfig() (SevenPaceConfig, error)

GetSevenPaceConfig reads the 7pace configuration from viper. Base URL, username and password are required; domain and activity type are optional.

Jump to

Keyboard shortcuts

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