identity

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider interface {
	GetIdentity() (*api.ServiceInstance, error)
}

Provider provides access to the identity of the locally running service instance.

func New

func New(conf *config.Config, kubeClient kubernetes.Interface) (Provider, error)

New creates an identity provider which exposes the identity specified by the given configuration parameters (service name, tags, endpoint, etc). If a pod name is specified, then missing parameters may be automatically fetched from Kubernetes API using the given client.

Jump to

Keyboard shortcuts

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