internal

package
v0.3.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cmd

type Cmd = exec.Cmd

type CommandCreator

type CommandCreator func(path string, args ...string) Cmd

type Formatter

type Formatter struct {
	log.Mixin

	CommandCreator CommandCreator
	Style          string
}

func (*Formatter) MarkdownToHTML

func (r *Formatter) MarkdownToHTML(markdown, title string) (string, error)

type MailSender

type MailSender struct {
	log.Mixin

	SendgridClientCreator SendgridClientCreator
	APIKey                string
	// contains filtered or unexported fields
}

func (*MailSender) Send

func (m *MailSender) Send(body, subject string) error

func (*MailSender) SetRecipients

func (m *MailSender) SetRecipients(recipientArgs ...string) error

func (*MailSender) SetSender

func (m *MailSender) SetSender(name, email string) error

type ReleaseNoter

type ReleaseNoter struct {
	log.Mixin

	ReleaseToolsDir string
	K8sDir          string
	GithubToken     string

	CommandCreator CommandCreator
}

func (*ReleaseNoter) GetMarkdown

func (r *ReleaseNoter) GetMarkdown() (string, error)

type SendError

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

func (*SendError) Error

func (e *SendError) Error() string

type SendgridClient

type SendgridClient interface {
	Send(*mail.SGMailV3) (*rest.Response, error)
}

type SendgridClientCreator

type SendgridClientCreator func(apiKey string) SendgridClient

type Workspace

type Workspace struct {
	log.Mixin

	K8sRepoPath    string
	CommandCreator CommandCreator
}

func (*Workspace) Status

func (w *Workspace) Status() (status, error)

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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