setup

package
v0.12.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IncludeAll   = "all"
	CleanAction  = "clean"
	DeleteAction = "delete"
	UpdateAction = "update"
	CreateAction = "create"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidcConfig asserts invalidConfigError.

Types

type Config

type Config struct {
	Oidc Oidc `yaml:"oidc,omitempty"`
}

func GetConfigFromFile

func GetConfigFromFile(fileLocation string, base64Vars bool) (Config, error)

type Oidc

type Oidc struct {
	Giantswarm OidcOwner `yaml:"giantswarm,omitempty"`
	Customer   OidcOwner `yaml:"customer,omitempty"`
}

type OidcOwner

type OidcOwner struct {
	Providers []OidcOwnerProvider `json:"providers,omitempty"`
}

type OidcOwnerProvider

type OidcOwnerProvider struct {
	Name        string `yaml:"name"`
	Credentials string `yaml:"credentials"`
}

type Setup

type Setup struct {
	// contains filtered or unexported fields
}

func New

func New(setup SetupConfig) (*Setup, error)

func (*Setup) CleanConfigCredentialsForProviders

func (s *Setup) CleanConfigCredentialsForProviders() error

func (*Setup) DeleteConfigCredentialsForProviders added in v0.5.0

func (s *Setup) DeleteConfigCredentialsForProviders() error

func (*Setup) GetConfigCredentialsForProviders

func (s *Setup) GetConfigCredentialsForProviders() error

func (*Setup) Run

func (s *Setup) Run() error

func (*Setup) WriteToFile

func (s *Setup) WriteToFile() error

type SetupConfig

type SetupConfig struct {
	Installation   string
	CredentialFile string
	OutputFile     string
	Provider       string
	Action         string
	Domains        []string //domains only matter for github setup
	Base64Vars     bool
}

Jump to

Keyboard shortcuts

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