crm

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ProjectTables = []interface{}{
	&Project{},
	&ProjectLabel{},
}

Functions

func NewClient

func NewClient(db *database.Database, log *zap.Logger,
	projectID 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 Project

type Project struct {
	ID             uint `gorm:"primarykey"`
	CreateTime     string
	LifecycleState string
	Name           string
	Labels         []*ProjectLabel `gorm:"constraint:OnDelete:CASCADE;"`
	ParentId       string
	ParentType     string

	ProjectId     string
	ProjectNumber int64
}

func (Project) TableName

func (Project) TableName() string

type ProjectLabel

type ProjectLabel struct {
	ID        uint `gorm:"primarykey"`
	ProjectID uint
	Key       string
	Value     string
}

func (ProjectLabel) TableName

func (ProjectLabel) TableName() string

Jump to

Keyboard shortcuts

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