patch

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KDevName          = "Kubernetes developer/contributor discussion"
	KDevEmail         = "kubernetes-dev@googlegroups.com"
	KDevAnnounceName  = "kubernetes-dev-announce"
	KDevAnnounceEmail = "kubernetes-dev-announce@googlegroups.com"

	ReleaseManagerName         = "Kubernetes Release Managers"
	ReleaseManagerTag          = "@kubernetes/patch-release-team"
	ReleaseManagerEmail        = "release-managers@kubernetes.io"
	ReleaseManagerSlackChannel = "release-management"
)
View Source
const MailHeadMarkdown = `` /* 804-byte string literal not displayed */
View Source
const MailStyle = `` /* 362-byte string literal not displayed */

Variables

This section is empty.

Functions

This section is empty.

Types

type AnnounceOptions

type AnnounceOptions struct {
	SenderEmail     string
	SenderName      string
	FreezeDate      string
	CutDate         string
	Nomock          bool
	K8sRepoPath     string
	ReleaseRepoPath string
	SendgridAPIKey  string
	GithubToken     string
}

type Announcer

type Announcer struct {
	log.Mixin

	Opts         AnnounceOptions
	ReleaseNoter ReleaseNoter
	MailSender   MailSender
	Formatter    Formatter
	Workspace    Workspace
}

func (*Announcer) Run

func (a *Announcer) Run() error

type Formatter

type Formatter interface {
	MarkdownToHTML(markdown, title string) (html string, err error)
}

type MailSender

type MailSender interface {
	SetSender(name, email string) error
	SetRecipients(recipients ...string) error
	Send(content, subject string) error
}

type ReleaseNoter

type ReleaseNoter interface {
	GetMarkdown() (relnotes string, err error)
}

type Workspace

type Workspace interface {
	Status() (status map[string]string, err error)
}

Directories

Path Synopsis
internalfakes
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