unfurl

package
v0.0.0-...-e70da7b Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BitbucketIcon               = "https://avatars.slack-edge.com/2021-06-20/2187759053413_fb4aad0a769aaadbdc62_72.png"
	BitbucketURLPullRequestType = "pull_request"
	BitbucketURLRepoType        = "repo"
	BitbucketURLSourceCodeType  = "source_code"
	BitbucketURLUnknownType     = "unknown"
)
View Source
const (
	JenkinsURLBuildType  = "build"
	JenkinsURLUknownType = "unknown"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Unfurl

type Unfurl struct {
	Logger    *logrus.Logger
	Jenkins   *gojenkins.Jenkins
	Bitbucket *bitbucket.Client
	Config    *utils.Config
}

Unfurl is an inverted control structure for the unfurl package

func (u *Unfurl) Links(event *slackevents.LinkSharedEvent) (map[string]slack.Attachment, error)

Links unfurls a all links from a Slack LinkSharedEvent and returns a slack.Attachment for each link.

Jump to

Keyboard shortcuts

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