server

package
v7.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsProxyRunning

func IsProxyRunning() bool

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 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

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

func NewEcsServer

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

func (*EcsServer) AssumeRoleArnRoute

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

func (*EcsServer) AuthToken

func (e *EcsServer) AuthToken() string

func (*EcsServer) BaseURL

func (e *EcsServer) BaseURL() string

func (*EcsServer) DefaultRoute

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

func (*EcsServer) Serve

func (e *EcsServer) Serve() error

Jump to

Keyboard shortcuts

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