structs

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package structs provides the data structures used across the application.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Browser added in v0.8.0

type Browser struct {
	FirefoxContainers bool   `yaml:"firefox_containers,omitempty"`
	CustomBrowserPath string `yaml:"custom_browser_path,omitempty"`
}

Browser holds configurations for browser options.

type Configuration

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

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,omitempty" json:"alias_name"`
	Account              string `yaml:"account,omitempty" json:"account_number"`
	CAR                  string `yaml:"cloud_access_role,omitempty" json:"cloud_access_role_name"`
	AccessType           string `yaml:"access_type,omitempty" json:"access_type"`
	Region               string `yaml:"region,omitempty" json:"account_region"`
	Service              string `yaml:"service,omitempty"`
	FirefoxContainerName string `yaml:"firefox_container_name,omitempty"`
	CloudServiceProvider string `json:"cloud_service_provider"`
	DescriptiveName      string
	Unaliased            bool
}

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

type FavoritesComparison added in v0.15.0

type FavoritesComparison struct {
	All               []Favorite // Combined local + API, deduplicated and deconflicted
	ConflictsLocal    []Favorite // Name conflicts (same name, different settings)
	ConflictsUpstream []Favorite // Name conflicts (same name, different settings)
	LocalOnly         []Favorite // Local-only favorites (not matched in API)
	UnaliasedLocal    []Favorite // Local favorites that update unnamed API favorites
	UnaliasedUpstream []Favorite // Local favorites that update unnamed API favorites
}

FavoritesComparison holds the results of comparing local favorites with API favorites. It includes all favorites, exact matches, non-matches, conflicts, and local-only favorites. It's returned by the CombineFavorites function.

type Kion

type Kion struct {
	URL              string `yaml:"url,omitempty"`
	APIKey           string `yaml:"api_key,omitempty"`
	Username         string `yaml:"username,omitempty"`
	Password         string `yaml:"password,omitempty"`
	IDMS             string `yaml:"idms_id,omitempty"`
	SamlMetadataFile string `yaml:"saml_metadata_file,omitempty"`
	SamlIssuer       string `yaml:"saml_sp_issuer,omitempty"`
	SamlPrintURL     bool   `yaml:"saml_print_url,omitempty"`
	DisableCache     bool   `yaml:"disable_cache,omitempty"`
	DefaultRegion    string `yaml:"default_region,omitempty"`
	DebugMode        bool   `yaml:"debug_mode,omitempty"`
	QuietMode        bool   `yaml:"quiet_mode,omitempty"`
}

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,omitempty"`
	Favorites []Favorite `yaml:"favorites,omitempty"`
}

Profile holds an alternate configuration for Kion and Favorites.

type SessionInfo added in v0.8.0

type SessionInfo struct {
	AccountName    string
	AccountNumber  string
	AccountTypeID  uint
	AwsIamRoleName string
	Region         string
}

SessionInfo holds the information about the federated session.

Jump to

Keyboard shortcuts

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