cliconfig

package
v2.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConnectionConfig

type ConnectionConfig struct {
	// ServerAddress with the dns/IP of the playground gRPC server.
	ServerAddress string
	// ServerPort with the port of the playground gRPC server.
	ServerPort int
	// UseTLS indicates that a TLS connection is expected with the Playground API.
	UseTLS bool
	// SkipCertValidation flag that enables ignoring the validation step of the certificate presented by the server.
	SkipCertValidation bool
	// CatalogAddress with the dns/IP of the catalog-manager gRPC server.
	CatalogAddress string
	// CatalogPort with the port of the catalog-manager gRPC server.
	CatalogPort int
	// ClientCA with a valid client CA
	ClientCA string
}

ConnectionConfig contains the configuration elements related to the connection with the Playground API.

type Installation

type Installation struct {
	Name             string
	ConnectionConfig *ConnectionConfig
}

Installation structure representing a target environment where the user is able to interact with using the plaground CLI.

type PlaygroundConfig

type PlaygroundConfig struct {
	CurrentInstallation *string
	Installations       []*Installation
}

PlaygroundConfig with a simplified configuration structure for the playground.

func (PlaygroundConfig) GetSelectedConnectionConfig

func (pc PlaygroundConfig) GetSelectedConnectionConfig() *ConnectionConfig

GetSelectedConnectionConfig retrieves the selected configuration from the playground configuration.

Jump to

Keyboard shortcuts

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