Documentation ¶ Index ¶ func NewClient(db *gorm.DB, log *zap.Logger, projectID string, region string) (resource.ClientInterface, error) type Client func (c *Client) CollectResource(resource string, config interface{}) error type Role type RolePermission type ServiceAccount 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 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 } Source Files ¶ View all Source files client.goproject_roles.goservice_accounts.go Click to show internal directories. Click to hide internal directories.