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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(db *gorm.DB, log *zap.Logger,
	projectID string, region string) (resource.ClientInterface, error)

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) ProjectRoles

func (c *Client) ProjectRoles(_ interface{}) error

func (*Client) ServiceAccounts

func (c *Client) ServiceAccounts(_ interface{}) error

type Role

type Role struct {
	ID                  uint `gorm:"primarykey"`
	ProjectID           string
	Region              string
	Deleted             bool
	Description         string
	Etag                string
	IncludedPermissions []*RolePermission `gorm:"constraint:OnDelete:CASCADE;"`
	Name                string
	Stage               string
	Title               string
}

type RolePermission

type RolePermission struct {
	ID     uint `gorm:"primarykey"`
	RoleID uint
	Value  string
}

type ServiceAccount

type ServiceAccount struct {
	ID             uint `gorm:"primarykey"`
	ProjectID      string
	Region         string
	Description    string
	Disabled       bool
	DisplayName    string
	Email          string
	Etag           string
	Name           string
	Oauth2ClientId string
	UniqueId       string
}

Jump to

Keyboard shortcuts

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