v6.6.2 Latest Latest

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

Go to latest
Published: Jan 16, 2023 License: MIT Imports: 19 Imported by: 0




This section is empty.


This section is empty.


func Shutdown

func Shutdown()

func StartEc2CredentialsServer

func StartEc2CredentialsServer(ctx context.Context, 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 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


type EcsServer added in v6.6.0

type EcsServer struct {
	// contains filtered or unexported fields

func NewEcsServer added in v6.6.0

func NewEcsServer(ctx context.Context, 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