oci

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDiscovery

func NewDiscovery(conf *SDConfig, logger *log.Logger) (*discovery, error)

NewDiscovery returns a new OCI discovery which periodically refreshes its targets.

Types

type SDConfig

type SDConfig struct {
	User            string
	FingerPrint     string
	KeyFile         string
	PassPhrase      string `toml:",omitempty"`
	Tenancy         string
	Region          string
	Compartment     string
	Port            int            `toml:",omitempty"`
	RefreshInterval model.Duration `toml:",omitempty"`
}

SDConfig is the configuration for OCI based service discovery.

func (*SDConfig) ApplyDefault

func (c *SDConfig) ApplyDefault() error

func (*SDConfig) Validate

func (c *SDConfig) Validate() error

Jump to

Keyboard shortcuts

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