server

package
v6.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2022 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Shutdown

func Shutdown()

func StartEc2CredentialsServer

func StartEc2CredentialsServer(credsProvider aws.CredentialsProvider, region string) error

StartEc2CredentialsServer starts a EC2 Instance Metadata server and endpoint proxy

func StartEc2EndpointProxyServerProcess

func StartEc2EndpointProxyServerProcess() error

StartEc2EndpointProxyServerProcess starts a `aws-vault proxy` process

func StartProxy

func StartProxy() error

StartProxy starts a http proxy server that listens on the standard EC2 Instance Metadata endpoint http://169.254.169.254:80/ and forwards requests through to the running `aws-vault exec` command

func StopProxy

func StopProxy()

StopProxy stops the http proxy server on the standard EC2 Instance Metadata endpoint

Types

type EcsServer added in v6.6.0

type EcsServer struct {
	// contains filtered or unexported fields
}

func NewEcsServer added in v6.6.0

func NewEcsServer(baseCredsProvider aws.CredentialsProvider, config *vault.Config, authToken string, port int, lazyLoadBaseCreds bool) (*EcsServer, error)

func (*EcsServer) AssumeRoleArnRoute added in v6.6.0

func (e *EcsServer) AssumeRoleArnRoute(w http.ResponseWriter, r *http.Request)

func (*EcsServer) AuthToken added in v6.6.0

func (e *EcsServer) AuthToken() string

func (*EcsServer) BaseURL added in v6.6.0

func (e *EcsServer) BaseURL() string

func (*EcsServer) DefaultRoute added in v6.6.0

func (e *EcsServer) DefaultRoute(w http.ResponseWriter, r *http.Request)

func (*EcsServer) Serve added in v6.6.0

func (e *EcsServer) Serve() error

Jump to

Keyboard shortcuts

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