responses

package
v1.12.3 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2022 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetCallerIdentityResponse

type GetCallerIdentityResponse struct {
	XMLName                 xml.Name                  `xml:"GetCallerIdentityResponse"`
	GetCallerIdentityResult []GetCallerIdentityResult `xml:"GetCallerIdentityResult"`
	ResponseMetadata        []ResponseMetadata        `xml:"ResponseMetadata"`
}

type GetCallerIdentityResult

type GetCallerIdentityResult struct {
	Arn     string `xml:"Arn"`
	UserId  string `xml:"UserId"`
	Account string `xml:"Account"`
}

type GetRoleResponse

type GetRoleResponse struct {
	XMLName          xml.Name           `xml:"GetRoleResponse"`
	GetRoleResult    []GetRoleResult    `xml:"GetRoleResult"`
	ResponseMetadata []ResponseMetadata `xml:"ResponseMetadata"`
}

type GetRoleResult

type GetRoleResult struct {
	Role Role `xml:"Role"`
}

type GetUserResponse

type GetUserResponse struct {
	XMLName          xml.Name           `xml:"GetUserResponse"`
	GetUserResult    []GetUserResult    `xml:"GetUserResult"`
	ResponseMetadata []ResponseMetadata `xml:"ResponseMetadata"`
}

type GetUserResult

type GetUserResult struct {
	User User `xml:"User"`
}

type IAMEntity

type IAMEntity interface {
	EntityPath() string
	EntityArn() string
	EntityName() string
	EntityId() string
	EntityTags() map[string]string
}

IAMEntity is an interface for getting details from an IAM Role or User.

type ParsedArn

type ParsedArn struct {
	Partition     string
	AccountNumber string
	Type          string
	Path          string
	FriendlyName  string
	SessionInfo   string
}

https://github.com/hashicorp/vault/blob/ba533d006f2244103648785ebfe8a9a9763d2b6e/builtin/credential/aws/path_login.go#L1722-L1744

func (*ParsedArn) CanonicalArn

func (p *ParsedArn) CanonicalArn() string

CanonicalArn returns the canonical ARN for referring to an IAM entity

type ResponseMetadata

type ResponseMetadata struct {
	RequestId string `xml:"RequestId"`
}

type Role

type Role struct {
	Arn      string `xml:"Arn"`
	Path     string `xml:"Path"`
	RoleId   string `xml:"RoleId"`
	RoleName string `xml:"RoleName"`
	Tags     Tags   `xml:"Tags"`
}

func (*Role) EntityArn

func (r *Role) EntityArn() string

func (*Role) EntityId

func (r *Role) EntityId() string

func (*Role) EntityName

func (r *Role) EntityName() string

func (*Role) EntityPath

func (r *Role) EntityPath() string

func (*Role) EntityTags

func (r *Role) EntityTags() map[string]string

type TagMember

type TagMember struct {
	Key   string `xml:"Key"`
	Value string `xml:"Value"`
}

type Tags

type Tags struct {
	Members []TagMember `xml:"member"`
}

type User

type User struct {
	Arn      string `xml:"Arn"`
	Path     string `xml:"Path"`
	UserId   string `xml:"UserId"`
	UserName string `xml:"UserName"`
	Tags     Tags   `xml:"Tags"`
}

func (*User) EntityArn

func (u *User) EntityArn() string

func (*User) EntityId

func (u *User) EntityId() string

func (*User) EntityName

func (u *User) EntityName() string

func (*User) EntityPath

func (u *User) EntityPath() string

func (*User) EntityTags

func (u *User) EntityTags() map[string]string

Jump to

Keyboard shortcuts

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