platform

package
v1.1.38 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Platform

type Platform int

Platform represents the kind of environment thelma is running in. For example: locally, on a laptop; in ArgoCD; in GitHub actions; etc.

const (
	Unknown Platform = iota
	Local
	ArgoCD
	GithubActions
	Jenkins
)

func Lookup

func Lookup() Platform

Lookup best-effort attempt to guess platform based on the environment thelma is running in

func (p Platform) Link() string

Link returns a link to the CI/CD logs for this Thelma run, if applicable

func (Platform) String

func (p Platform) String() string

String implement fmt.Stringer interface

func (*Platform) UnmarshalText

func (p *Platform) UnmarshalText(text []byte) error

UnmarshalText implement encoding.TextUnmarshaler interface so platform can be deserialized from config

Jump to

Keyboard shortcuts

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