authregister

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package authregister is an interface to the anonymous methods of the SSM service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client is a service wrapper that delegates to the ssm sdk.

func (*Client) RegisterManagedInstanceWithContext

func (svc *Client) RegisterManagedInstanceWithContext(ctx context.Context, publicKey, publicKeyType, fingerprint, iamRole, tagsJson string) (string, error)

RegisterManagedInstanceWithContext calls the RegisterManagedInstance SSM API

type IClient

type IClient interface {
	RegisterManagedInstanceWithContext(ctx context.Context, publicKey, publicKeyType, fingerprint, iamRole, tagsJson string) (string, error)
}

IClient is an interface to the authenticated registration method of the SSM service.

func NewClient

func NewClient(log logger.T, region string, imdsClient iirprovider.IEC2MdsSdkClient) IClient

NewClient creates a new SSM client instance

func NewClientWithConfig

func NewClientWithConfig(log logger.T, appConfig appconfig.SsmagentConfig, imdsClient iirprovider.IEC2MdsSdkClient, awsConfig aws.Config) IClient

type ISsmSdk

type ISsmSdk interface {
	RegisterManagedInstanceWithContext(ctx context.Context, input *ssm.RegisterManagedInstanceInput, opts ...request.Option) (*ssm.RegisterManagedInstanceOutput, error)
}

ISsmSdk defines the functions needed from the AWS SSM SDK

type RegistrationInfo

type RegistrationInfo struct {
	PrivateKey string
	PublicKey  string
	KeyType    string
	InstanceId string
}

RegistrationInfo contains information used to register the instance

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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