iam_role

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT-0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() *resource.Resource

Types

type Getter

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

func NewGetter

func NewGetter(iamClient *aws.IAMClient) *Getter

func (*Getter) Get

func (g *Getter) Get(name string, output printer.Output, options resource.Options) error

func (*Getter) GetAllRoles

func (g *Getter) GetAllRoles(getRoleDetails bool) (roles []types.Role, err error)

func (*Getter) GetIrsaRolesForCluster

func (g *Getter) GetIrsaRolesForCluster(cluster *ekstypes.Cluster, getRoleDetails bool) ([]types.Role, error)

func (*Getter) GetRoleByName

func (g *Getter) GetRoleByName(name string) (*types.Role, error)

func (*Getter) GetRolesByNameSearch

func (g *Getter) GetRolesByNameSearch(nameSearch string) ([]types.Role, error)

func (*Getter) Init

func (g *Getter) Init()

type IamRoleOptions

type IamRoleOptions struct {
	resource.CommonOptions

	LastUsed   bool
	NameSearch string
}

func NewOptions

func NewOptions() (options *IamRoleOptions, getFlags cmd.Flags)

type IamRolePrinter

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

func NewPrinter

func NewPrinter(roles []types.Role, lastUsed bool) *IamRolePrinter

func (*IamRolePrinter) PrintJSON

func (p *IamRolePrinter) PrintJSON(writer io.Writer) error

func (*IamRolePrinter) PrintTable

func (p *IamRolePrinter) PrintTable(writer io.Writer) error

func (*IamRolePrinter) PrintYAML

func (p *IamRolePrinter) PrintYAML(writer io.Writer) error

Jump to

Keyboard shortcuts

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