structs

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Kion      Kion               `yaml:"kion"`
	Favorites []Favorite         `yaml:"favorites"`
	Profiles  map[string]Profile `yaml:"profiles"`
}

Configuration holds the CLI tool values needed to run. The struct maps to the applications configured dotfile for persistence between sessions.

type Favorite

type Favorite struct {
	Name       string `yaml:"name"`
	Account    string `yaml:"account"`
	CAR        string `yaml:"cloud_access_role"`
	AccessType string `yaml:"access_type"`
	Region     string `yaml:"region"`
}

Favorite holds information about user defined favorites used to quickly access desired accounts.

type Kion

type Kion struct {
	Url              string `yaml:"url"`
	ApiKey           string `yaml:"api_key"`
	Username         string `yaml:"username"`
	Password         string `yaml:"password"`
	IDMS             string `yaml:"idms_id"`
	SamlMetadataFile string `yaml:"saml_metadata_file"`
	SamlIssuer       string `yaml:"saml_sp_issuer"`
	DisableCache     bool   `yaml:"disable_cache"`
}

Kion holds information about the instance of Kion with which the application interfaces with as well as the credentials to do so.

type Profile added in v0.3.0

type Profile struct {
	Kion      Kion       `yaml:"kion"`
	Favorites []Favorite `yaml:"favorites"`
}

Profile holds an alternate configuration for Kion and Favorites.

Jump to

Keyboard shortcuts

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