openapi

package
v0.0.0-...-7dfd596 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CfgLoader

type CfgLoader interface {
	Load() (config *Config)
}

func EnvLoader

func EnvLoader() CfgLoader

func FileLoader

func FileLoader(filename string) CfgLoader

func ServerLoader

func ServerLoader(metadataService metadata.MetadataService) CfgLoader

type Config

type Config struct {
	Credential `yaml:",inline"`
	Topology   `yaml:",inline"`
	OpenApi    `yaml:",inline"`
}

func ConfigVia

func ConfigVia(loaders ...CfgLoader) *Config

type Credential

type Credential struct {
	AccessKeyId     string `yaml:"AccessKeyId"`
	SecretAccessKey string `yaml:"SecretAccessKey"`
	SessionToken    string `yaml:"SessionToken"`
	AssumeRoleName  string `yaml:"AssumeRoleName"`
}

type OpenApi

type OpenApi struct {
	Host string `yaml:"Host"`
}

type Topology

type Topology struct {
	Region string `yaml:"Region"`
	Zone   string `yaml:"Zone"`
}

Jump to

Keyboard shortcuts

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