Documentation ¶
Index ¶
Constants ¶
View Source
const ProfileName = "teleport"
ProfileName is the name of the opensearch-cli that will be created for Teleport usage
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Certificate ¶
type Certificate struct { // CACert is the path to the CA cert. CACert string `json:"cafilepath,omitempty"` // Cert is the path to the client cert. Cert string `json:"clientcertificatefilepath,omitempty"` // Key is the path to the client key. Key string `json:"clientkeyfilepath,omitempty"` }
Certificate is an optional certificate config.
type Config ¶
type Config struct { // Profiles is the list of profiles in the config. Profiles []Profile `json:"profiles"` }
Config represents configuration for opensearch-cli
func ConfigNoTLS ¶
ConfigNoTLS returns insecure config with single profile.
type Profile ¶
type Profile struct { // Name is the name of the profile. We use fixed "teleport" profile name per the ProfileName constant. Name string `json:"name"` // Endpoint is the URL of the database endpoint Endpoint string `json:"endpoint"` // Certificate holds optional certificate info Certificate *Certificate `json:"certificate,omitempty"` // MaxRetry is the maximum number of retries to be made in case of error. MaxRetry int `json:"max_retry,omitempty"` // Timeout is the timeout used by the client. Timeout int `json:"timeout,omitempty"` }
Profile represents single profile in opensearch-cli configuration
Click to show internal directories.
Click to hide internal directories.