Documentation ¶
Index ¶
- func NewResource() *resource.Resource
- type Getter
- func (g *Getter) Get(arn string, output printer.Output, options resource.Options) error
- func (g *Getter) GetAllPolicies() (policies []types.Policy, err error)
- func (g *Getter) GetPoliciesByNameSearch(nameSearch string) ([]types.Policy, error)
- func (g *Getter) GetPoliciesByRoleName(roleName string) (*RolePolicies, error)
- func (g *Getter) GetPolicyByArn(arn string) (*types.Policy, error)
- func (g *Getter) Init()
- type IamPolicyOptions
- type IamPolicyPrinter
- type InlinePolicy
- type ManagedPolicy
- type RolePolicies
- type RolePolicyPrinter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
Types ¶
type Getter ¶
type Getter struct {
// contains filtered or unexported fields
}
func (*Getter) GetAllPolicies ¶
func (*Getter) GetPoliciesByNameSearch ¶
func (*Getter) GetPoliciesByRoleName ¶
func (g *Getter) GetPoliciesByRoleName(roleName string) (*RolePolicies, error)
type IamPolicyOptions ¶
type IamPolicyOptions struct { resource.CommonOptions NameSearch string Role string }
func NewOptions ¶
func NewOptions() (options *IamPolicyOptions, getFlags cmd.Flags)
type IamPolicyPrinter ¶
type IamPolicyPrinter struct {
// contains filtered or unexported fields
}
func NewPrinter ¶
func NewPrinter(roles []types.Policy) *IamPolicyPrinter
func (*IamPolicyPrinter) PrintTable ¶
func (p *IamPolicyPrinter) PrintTable(writer io.Writer) error
type InlinePolicy ¶
type ManagedPolicy ¶
type ManagedPolicy struct { Policy *types.Policy PolicyVersion *types.PolicyVersion }
type RolePolicies ¶
type RolePolicies struct { InlinePolicies []InlinePolicy ManagedPolicies []ManagedPolicy }
type RolePolicyPrinter ¶
type RolePolicyPrinter struct {
*RolePolicies
}
func NewRolePolicyPrinter ¶
func NewRolePolicyPrinter(policies *RolePolicies) *RolePolicyPrinter
func (*RolePolicyPrinter) PrintTable ¶
func (p *RolePolicyPrinter) PrintTable(writer io.Writer) error
Click to show internal directories.
Click to hide internal directories.