utils

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockClient added in v1.0.1

func NewMockClient(t *testing.T) (*client.CfClient, *mocks.MockRoundTripper)

Types

type CFConfig

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

type CFContext

type CFContext struct {
	Type        string `json:"type"`
	Name        string `json:"name"`
	URL         string `json:"url"`
	Token       string `json:"token"`
	Beta        bool   `json:"beta"`
	OnPrem      bool   `json:"onPrem"`
	ACLType     string `json:"acl-type"`
	UserID      string `json:"user-id"`
	AccountID   string `json:"account-id"`
	Expires     int    `json:"expires"`
	UserName    string `json:"user-name"`
	AccountName string `json:"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