Documentation
¶
Overview ¶
Hologram workstation agent
Index ¶
- func AccessKeyClient(cr CredentialsReceiver, accountAliases *map[string]string) *accessKeyClient
- func Asset(name string) ([]byte, error)
- func AssetDir(name string) ([]string, error)
- func AssetInfo(name string) (os.FileInfo, error)
- func AssetNames() []string
- func NewCliHandler(address string, client Client) *cliHandler
- func NewClient(connectionString string, cr CredentialsReceiver) *client
- func NewCredentialsExpirationManager() *credentialsExpirationManager
- func RestoreAsset(dir, name string) error
- func RestoreAssets(dir, name string) error
- func SSHSetAgentSock(socketAddressFromCli string, sshKeyFromCli []byte)
- func SSHSign(challenge []byte, skip int) (*ssh.Signature, error)
- type Client
- type CredentialsReceiver
- type MetadataService
- type Service
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AccessKeyClient ¶
func AccessKeyClient(cr CredentialsReceiver, accountAliases *map[string]string) *accessKeyClient
func Asset ¶
Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.
func AssetDir ¶
AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:
data/
foo.txt
img/
a.png
b.png
then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.
func AssetInfo ¶
AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.
func NewCliHandler ¶
func NewClient ¶
func NewClient(connectionString string, cr CredentialsReceiver) *client
func NewCredentialsExpirationManager ¶
func NewCredentialsExpirationManager() *credentialsExpirationManager
func RestoreAsset ¶
Restore an asset under the given directory
func RestoreAssets ¶
Restore assets under the given directory recursively
func SSHSetAgentSock ¶
Types ¶
type CredentialsReceiver ¶
type CredentialsReceiver interface {
SetCredentials(*sts.Credentials, string)
SetClient(Client)
}
type MetadataService ¶
MetadataService extends Service to include information about public port numbers for testing purposes.
func NewMetadataService ¶
func NewMetadataService(listener net.Listener, creds credentialsSource, extraAllowedIps []*net.IPNet) (MetadataService, error)
NewMetadataService returns a properly-initialized metadataService for use.
type Service ¶
type Service interface {
/*
Start should create any resources that the service requires,
including background goroutines that service requests through
the Service's public API.
*/
Start() error
/*
If any special cleanup needs to occur for this Service to cleanly
shut down, it should be implemented here.
*/
Stop() error
}
Service implements background workers and servers.