utils

package
v0.52.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: Apache-2.0 Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CastToCodefreshOrDie

func CastToCodefreshOrDie(candidate interface{}) codefresh.Codefresh

Types

type CFConfig

type CFConfig struct {
	Contexts       map[string]*CFContext `yaml:"contexts"`
	CurrentContext string                `yaml:"current-context"`
}

func GetCFConfig added in v0.11.0

func GetCFConfig(path string) (*CFConfig, error)

type CFContext

type CFContext struct {
	Type        string `yaml:"type"`
	Name        string `yaml:"name"`
	URL         string `yaml:"url"`
	Token       string `yaml:"token"`
	Beta        bool   `yaml:"beta"`
	OnPrem      bool   `yaml:"onPrem"`
	ACLType     string `yaml:"acl-type"`
	UserID      string `yaml:"user-id"`
	AccountID   string `yaml:"account-id"`
	Expires     int    `yaml:"expires"`
	UserName    string `yaml:"user-name"`
	AccountName string `yaml:"account-name"`
}

func ReadAuthContext

func ReadAuthContext(path string, name string) (*CFContext, error)

Jump to

Keyboard shortcuts

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