instanceprofile

package
v0.37.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultProvider added in v0.36.0

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

func NewDefaultProvider added in v0.37.0

func NewDefaultProvider(region string, iamapi iamiface.IAMAPI, cache *cache.Cache) *DefaultProvider

func (*DefaultProvider) Create added in v0.36.0

func (*DefaultProvider) Delete added in v0.36.0

type Provider

type Provider interface {
	Create(context.Context, ResourceOwner) (string, error)
	Delete(context.Context, ResourceOwner) error
}

type ResourceOwner added in v0.37.0

type ResourceOwner interface {
	GetUID() types.UID
	InstanceProfileName(string, string) string
	InstanceProfileRole() string
	InstanceProfileTags(string) map[string]string
}

ResourceOwner is an object that manages an instance profile

Jump to

Keyboard shortcuts

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