Documentation ¶
Index ¶
- Constants
- Variables
- func CheckEndpointAccess(ctx context.Context, config aws.Config) error
- func DeregisterAndUninstall(ctx context.Context, logger *zap.Logger, pkgSource PkgSource) error
- func GetManagedHybridInstanceId() (string, error)
- func GetManagedHybridInstanceIdAndRegion() (string, string, error)
- func Install(ctx context.Context, tracker *tracker.Tracker, source Source) error
- func NewSsmDaemon(daemonManager daemon.DaemonManager, cfg *api.NodeConfig, logger *zap.Logger) daemon.Daemon
- func Uninstall(ctx context.Context, logger *zap.Logger, pkgSource PkgSource) error
- func WaitForAWSConfig(ctx context.Context, nodeConfig *api.NodeConfig, backoff time.Duration) (aws.Config, error)
- type AccessValidator
- type HybridInstanceRegistration
- type PkgSource
- type Source
Constants ¶
View Source
const DefaultSsmInstallerRegion = "us-west-2"
Initial region ssm installer is downloaded from. When installer runs, it will down the agent from the proper region configured in the nodeConfig during init command
Variables ¶
View Source
var (
SsmDaemonName = "amazon-ssm-agent"
)
Functions ¶
func DeregisterAndUninstall ¶
DeregisterAndUninstall de-registers the managed instance and removes all files and components that make up the ssm agent component.
func NewSsmDaemon ¶
func NewSsmDaemon(daemonManager daemon.DaemonManager, cfg *api.NodeConfig, logger *zap.Logger) daemon.Daemon
Types ¶
type AccessValidator ¶
type AccessValidator struct {
// contains filtered or unexported fields
}
AccessValidator validates access to the AWS SSM API endpoint.
func NewAccessValidator ¶
func NewAccessValidator(aws aws.Config) AccessValidator
NewAccessValidator returns a new AccessValidator.
func (AccessValidator) Run ¶
func (a AccessValidator) Run(ctx context.Context, informer validation.Informer, _ *api.NodeConfig) error
type Source ¶
type Source interface {
GetSSMInstaller(ctx context.Context) (io.ReadCloser, error)
}
Source serves an SSM installer binary for the target platform.
func NewSSMInstaller ¶
SSMInstaller provides a Source that retrieves the SSM installer from the official release endpoint.
Click to show internal directories.
Click to hide internal directories.