infrastructure

package
v0.0.0-...-a9180e6 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateCardRequest

type CreateCardRequest struct {
	ProjectId    int    `json:"project_id"`
	Title        string `json:"title"`
	Body         string `json:"body"`
	LabelIds     []int  `json:"label_ids"`
	CategoryName string `json:"category_name"`
	EpicId       int    `json:"epic_id"`
	GithubIssue  int    `json:"github_issue"`
	AssigneeIds  []int  `json:"assignee_ids"`
	Points       int    `json:"points"`
	Priority     int    `json:"priority"`
	SprintId     int    `json:"sprint_id"`
	WorkspaceId  int    `json:"workspace_id"`
}

type CreateCardResponse

type CreateCardResponse struct {
	ID int `json:"id"`
}

type Label

type Label struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type LabelDataStore

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

func NewLabelDataStore

func NewLabelDataStore() (*LabelDataStore, error)

func (LabelDataStore) GetByReaction

func (d LabelDataStore) GetByReaction(channel string, reaction string) (domain.Label, error)

type LabelEntity

type LabelEntity struct {
	LabelID int `datastore:",noindex"`
}

type LabelsResponse

type LabelsResponse struct {
	Data []Label `json:"data"`
}

type Project

type Project struct {
	ID         int         `json:"id"`
	Name       string      `json:"name"`
	Workspaces []Workspace `json:"workspaces"`
}

type ProjectDataStore

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

func NewProjectDataStore

func NewProjectDataStore() (*ProjectDataStore, error)

func (ProjectDataStore) GetByChannel

func (d ProjectDataStore) GetByChannel(channel string) (domain.Project, error)

type ProjectEntity

type ProjectEntity struct {
	ProjectID   int `datastore:",noindex"`
	WorkspaceID int `datastore:",noindex"`
}

type ResponseBody

type ResponseBody struct {
	Data []Project `json:"data"`
}

type SecretManager

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

func NewSecretManager

func NewSecretManager() (*SecretManager, error)

func (SecretManager) GetSecret

func (s SecretManager) GetSecret(secretName string) ([]byte, error)

type Slack

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

func NewSlack

func NewSlack(slackAccessToken string) *Slack

func (Slack) GetMessage

func (s Slack) GetMessage(channel string, timestamp string) (domain.SlackMessage, error)

type SlackMessage

type SlackMessage struct {
	Title string
	Body  string
}

type Task

type Task struct {
	CardID int    `datastore:",noindex"`
	Title  string `datastore:",noindex"`
	Body   string `datastore:""`
}

type TaskDataStore

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

func NewTaskDataStore

func NewTaskDataStore() (*TaskDataStore, error)

func (TaskDataStore) Create

func (d TaskDataStore) Create(domainTask domain.Task) error

func (TaskDataStore) Delete

func (d TaskDataStore) Delete(channel string, timestamp string) error

func (TaskDataStore) Get

func (d TaskDataStore) Get(channel string, timestamp string) (*domain.Task, error)

type Workspace

type Workspace struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

type Zube

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

func NewZube

func NewZube(zubePrivateKey []byte) (*Zube, error)

func (Zube) Create

func (z Zube) Create(task domain.Task) (int, error)

func (Zube) Delete

func (z Zube) Delete(cardID int) error

func (Zube) GetLabels

func (z Zube) GetLabels(zubeProjectID string) (interface{}, error)

func (Zube) GetProjects

func (z Zube) GetProjects() ([]Project, error)

type ZubeTokenResponse

type ZubeTokenResponse struct {
	AccessToken string `json:"access_token"`
}

Jump to

Keyboard shortcuts

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