renderer

package
v0.0.0-...-5b94c7c Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package renderer is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Description

type Description interface {
	Render(description string) (string, error)
}

Description rendering entity descriptions

type Edit

type Edit interface {
	MarshalCardToCreate(trello.CardToCreate, trello.Lists, trello.Labels) ([]byte, error)
	MarshalCardToEdit(trello.CardToEdit, trello.Lists, trello.Labels) ([]byte, error)
	Unmarshal([]byte, interface{}) error
	GetFileType() string
}

func NewEdit

func NewEdit(format string) Edit

func NewEditInPrettyToml

func NewEditInPrettyToml() Edit

func NewEditInPrettyYaml

func NewEditInPrettyYaml() Edit

func NewEditInYaml

func NewEditInYaml() Edit

type EditInPrettyToml

type EditInPrettyToml struct{}

func (EditInPrettyToml) GetFileType

func (e EditInPrettyToml) GetFileType() string

func (EditInPrettyToml) MarshalCardToCreate

func (e EditInPrettyToml) MarshalCardToCreate(ctc trello.CardToCreate, lists trello.Lists, labels trello.Labels) ([]byte, error)

func (EditInPrettyToml) MarshalCardToEdit

func (e EditInPrettyToml) MarshalCardToEdit(cte trello.CardToEdit, lists trello.Lists, labels trello.Labels) ([]byte, error)

func (EditInPrettyToml) Unmarshal

func (e EditInPrettyToml) Unmarshal(bytes []byte, i interface{}) error

type EditInPrettyYaml

type EditInPrettyYaml struct{}

func (EditInPrettyYaml) GetFileType

func (e EditInPrettyYaml) GetFileType() string

func (EditInPrettyYaml) MarshalCardToCreate

func (e EditInPrettyYaml) MarshalCardToCreate(ctc trello.CardToCreate, lists trello.Lists, labels trello.Labels) ([]byte, error)

func (EditInPrettyYaml) MarshalCardToEdit

func (e EditInPrettyYaml) MarshalCardToEdit(cte trello.CardToEdit, lists trello.Lists, labels trello.Labels) ([]byte, error)

func (EditInPrettyYaml) Unmarshal

func (e EditInPrettyYaml) Unmarshal(in []byte, v interface{}) error

type EditInYaml

type EditInYaml struct{}

func (EditInYaml) GetFileType

func (e EditInYaml) GetFileType() string

func (EditInYaml) MarshalCardToCreate

func (e EditInYaml) MarshalCardToCreate(create trello.CardToCreate, _ trello.Lists, _ trello.Labels) ([]byte, error)

func (EditInYaml) MarshalCardToEdit

func (e EditInYaml) MarshalCardToEdit(cte trello.CardToEdit, _ trello.Lists, _ trello.Labels) ([]byte, error)

func (EditInYaml) Unmarshal

func (e EditInYaml) Unmarshal(in []byte, v interface{}) error

type InTable

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

func (InTable) RenderBoard

func (b InTable) RenderBoard(board trello.Board) string

func (InTable) RenderBoards

func (b InTable) RenderBoards(boards trello.Boards) string

func (InTable) RenderCard

func (b InTable) RenderCard(card trello.Card) string

func (InTable) RenderCards

func (b InTable) RenderCards(cards trello.Cards) string

func (InTable) RenderComment

func (b InTable) RenderComment(comment trello.Comment) string

func (InTable) RenderComments

func (b InTable) RenderComments(comments trello.Comments) string

func (InTable) RenderList

func (b InTable) RenderList(list trello.List) string

func (InTable) RenderLists

func (b InTable) RenderLists(lists trello.Lists) string

type Labels

type Labels interface {
	Render(labels trello.Labels) string
}

Labels rendering labels

type MockRenderer

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

MockRenderer is a mock of Renderer interface.

func NewMockRenderer

func NewMockRenderer(ctrl *gomock.Controller) *MockRenderer

NewMockRenderer creates a new mock instance.

func (*MockRenderer) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRenderer) RenderBoard

func (m *MockRenderer) RenderBoard(arg0 trello.Board) string

RenderBoard mocks base method.

func (*MockRenderer) RenderBoards

func (m *MockRenderer) RenderBoards(arg0 trello.Boards) string

RenderBoards mocks base method.

func (*MockRenderer) RenderCard

func (m *MockRenderer) RenderCard(arg0 trello.Card) string

RenderCard mocks base method.

func (*MockRenderer) RenderCards

func (m *MockRenderer) RenderCards(arg0 trello.Cards) string

RenderCards mocks base method.

func (*MockRenderer) RenderComment

func (m *MockRenderer) RenderComment(arg0 trello.Comment) string

RenderComment mocks base method.

func (*MockRenderer) RenderComments

func (m *MockRenderer) RenderComments(arg0 trello.Comments) string

RenderComments mocks base method.

func (*MockRenderer) RenderList

func (m *MockRenderer) RenderList(arg0 trello.List) string

RenderList mocks base method.

func (*MockRenderer) RenderLists

func (m *MockRenderer) RenderLists(arg0 trello.Lists) string

RenderLists mocks base method.

type MockRendererMockRecorder

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

MockRendererMockRecorder is the mock recorder for MockRenderer.

func (*MockRendererMockRecorder) RenderBoard

func (mr *MockRendererMockRecorder) RenderBoard(arg0 interface{}) *gomock.Call

RenderBoard indicates an expected call of RenderBoard.

func (*MockRendererMockRecorder) RenderBoards

func (mr *MockRendererMockRecorder) RenderBoards(arg0 interface{}) *gomock.Call

RenderBoards indicates an expected call of RenderBoards.

func (*MockRendererMockRecorder) RenderCard

func (mr *MockRendererMockRecorder) RenderCard(arg0 interface{}) *gomock.Call

RenderCard indicates an expected call of RenderCard.

func (*MockRendererMockRecorder) RenderCards

func (mr *MockRendererMockRecorder) RenderCards(arg0 interface{}) *gomock.Call

RenderCards indicates an expected call of RenderCards.

func (*MockRendererMockRecorder) RenderComment

func (mr *MockRendererMockRecorder) RenderComment(arg0 interface{}) *gomock.Call

RenderComment indicates an expected call of RenderComment.

func (*MockRendererMockRecorder) RenderComments

func (mr *MockRendererMockRecorder) RenderComments(arg0 interface{}) *gomock.Call

RenderComments indicates an expected call of RenderComments.

func (*MockRendererMockRecorder) RenderList

func (mr *MockRendererMockRecorder) RenderList(arg0 interface{}) *gomock.Call

RenderList indicates an expected call of RenderList.

func (*MockRendererMockRecorder) RenderLists

func (mr *MockRendererMockRecorder) RenderLists(arg0 interface{}) *gomock.Call

RenderLists indicates an expected call of RenderLists.

type PlainDescription

type PlainDescription struct{}

func (PlainDescription) Render

func (p PlainDescription) Render(description string) (string, error)

type PlainLabel

type PlainLabel struct{}

func (PlainLabel) Render

func (p PlainLabel) Render(labels trello.Labels) string

type Renderer

type Renderer interface {
	RenderBoards(trello.Boards) string
	RenderBoard(trello.Board) string
	RenderLists(trello.Lists) string
	RenderList(trello.List) string
	RenderCards(trello.Cards) string
	RenderCard(trello.Card) string
	RenderComments(trello.Comments) string
	RenderComment(trello.Comment) string
}

Renderer for displaying Trello entities in human friendly way

func NewInTableRenderer

func NewInTableRenderer(lr Labels, cdr Description) Renderer

type TermEnvLabel

type TermEnvLabel struct{}

func (TermEnvLabel) Render

func (t TermEnvLabel) Render(labels trello.Labels) string

Jump to

Keyboard shortcuts

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