iam

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2020 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(session *session.Session, db *gorm.DB, log *zap.Logger,
	accountID string, region string) resource.ClientInterface

Types

type Client

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

func (*Client) CollectResource

func (c *Client) CollectResource(resource string, config interface{}) error

func (*Client) Groups

func (c *Client) Groups(gConfig interface{}) error

func (*Client) Policys

func (c *Client) Policys(gConfig interface{}) error

func (*Client) Users

func (c *Client) Users(gConfig interface{}) error

type Group

type Group struct {
	ID         uint `gorm:"primarykey"`
	AccountID  string
	Region     string
	Arn        *string
	CreateDate *time.Time
	GroupId    *string
	GroupName  *string
	Path       *string
}

type Policy

type Policy struct {
	ID                            uint `gorm:"primarykey"`
	AccountID                     string
	Region                        string
	Arn                           *string
	AttachmentCount               *int64
	CreateDate                    *time.Time
	DefaultVersionId              *string
	Description                   *string
	IsAttachable                  *bool
	Path                          *string
	PermissionsBoundaryUsageCount *int64
	PolicyId                      *string
	PolicyName                    *string
	UpdateDate                    *time.Time
}

type User

type User struct {
	ID                  uint `gorm:"primarykey"`
	AccountID           string
	Region              string
	Arn                 *string
	CreateDate          *time.Time
	PasswordLastUsed    *time.Time
	Path                *string
	PermissionsBoundary *iam.AttachedPermissionsBoundary `gorm:"embedded;embeddedPrefix:permissions_boundary_"`
	Tags                []*UserTag                       `gorm:"constraint:OnDelete:CASCADE;"`
	UserId              *string
	UserName            *string
}

type UserTag

type UserTag struct {
	ID     uint `gorm:"primarykey"`
	UserID uint
	Key    *string
	Value  *string
}

Jump to

Keyboard shortcuts

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