models

package
v0.0.0-...-7d3b672 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TrelloApiParams

type TrelloApiParams struct {
	ConnectionId uint64
	BoardId      string
}

type TrelloBoard

type TrelloBoard struct {
	common.NoPKModel `json:"-" mapstructure:"-"`
	ConnectionId     uint64 `json:"connectionId" mapstructure:"connectionId" gorm:"primaryKey"`
	BoardId          string `json:"boardId" mapstructure:"boardId" gorm:"type:varchar(255)"`
	ScopeConfigId    uint64 `json:"scopeConfigId,omitempty" mapstructure:"scopeConfigId"`
	Name             string `json:"name" mapstructure:"name" gorm:"type:varchar(255)"`
}

func (TrelloBoard) ScopeId

func (b TrelloBoard) ScopeId() string

func (TrelloBoard) ScopeName

func (b TrelloBoard) ScopeName() string

func (TrelloBoard) ScopeParams

func (b TrelloBoard) ScopeParams() interface{}

func (TrelloBoard) TableName

func (TrelloBoard) TableName() string

type TrelloCard

type TrelloCard struct {
	ID               string `gorm:"primaryKey;type:varchar(255)"`
	Name             string `gorm:"type:varchar(255)"`
	Closed           bool
	DueComplete      bool
	DateLastActivity time.Time
	IDBoard          string `gorm:"type:varchar(255)"`
	IDList           string `gorm:"type:varchar(255)"`
	IDShort          int
	Pos              float64
	ShortLink        string `gorm:"type:varchar(255)"`
	ShortUrl         string `gorm:"type:varchar(255)"`
	Subscribed       bool
	Url              string `gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (TrelloCard) TableName

func (TrelloCard) TableName() string

type TrelloCheckItem

type TrelloCheckItem struct {
	ID            string `gorm:"primaryKey;type:varchar(255)"`
	Name          string `gorm:"type:varchar(255)"`
	State         string `gorm:"type:varchar(255)"`
	IDChecklist   string `gorm:"type:varchar(255)"`
	ChecklistName string `gorm:"type:varchar(255)"`
	IDBoard       string `gorm:"type:varchar(255)"`
	IDCard        string `gorm:"type:varchar(255)"`
	Pos           float64
	common.NoPKModel
}

func (TrelloCheckItem) TableName

func (TrelloCheckItem) TableName() string

type TrelloConn

type TrelloConn struct {
	helper.RestConnection `mapstructure:",squash"`
	helper.AppKey         `mapstructure:",squash"`
}

TrelloConn holds the essential information to connect to the Trello API

func (*TrelloConn) SetupAuthentication

func (tc *TrelloConn) SetupAuthentication(req *http.Request) errors.Error

SetupAuthentication sets up the HTTP Request Authentication

type TrelloConnection

type TrelloConnection struct {
	helper.BaseConnection `mapstructure:",squash"`
	TrelloConn            `mapstructure:",squash"`
}

TrelloConnection holds TrelloConn plus ID/Name for database storage

func (TrelloConnection) TableName

func (TrelloConnection) TableName() string

type TrelloLabel

type TrelloLabel struct {
	ID      string `gorm:"primaryKey;type:varchar(255)"`
	IDBoard string `gorm:"type:varchar(255)"`
	Name    string `gorm:"type:varchar(255)"`
	Color   string `gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (TrelloLabel) TableName

func (TrelloLabel) TableName() string

type TrelloList

type TrelloList struct {
	ID         string `gorm:"primaryKey;type:varchar(255)"`
	Name       string `gorm:"type:varchar(255)"`
	IDBoard    string `gorm:"type:varchar(255)"`
	Subscribed bool
	Pos        float64
	common.NoPKModel
}

func (TrelloList) TableName

func (TrelloList) TableName() string

type TrelloMember

type TrelloMember struct {
	ID       string `gorm:"primaryKey;type:varchar(255)"`
	FullName string `gorm:"type:varchar(255)"`
	Username string `gorm:"type:varchar(255)"`
	common.NoPKModel
}

func (TrelloMember) TableName

func (TrelloMember) TableName() string

type TrelloScopeConfig

type TrelloScopeConfig struct {
	common.ScopeConfig `mapstructure:",squash" json:",inline" gorm:"embedded"`
	ConnectionId       uint64 `mapstructure:"connectionId" json:"connectionId"`
	Name               string `mapstructure:"name" json:"name" gorm:"type:varchar(255);index:idx_name_trello,unique" validate:"required"`
}

func (TrelloScopeConfig) TableName

func (TrelloScopeConfig) TableName() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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