beehive: github.com/muesli/beehive/bees/jenkinsbee Index | Files

package jenkinsbee

import "github.com/muesli/beehive/bees/jenkinsbee"

Package jenkinsbee is a Bee that can interface with a Jenkins server.

Index

Package Files

jenkinsbee.go jenkinsbeefactory.go

type JenkinsBee Uses

type JenkinsBee struct {
    bees.Bee

    Jobs map[string]Job `json:"jobs"`
    // contains filtered or unexported fields
}

JenkinsBee is a Bee that can interface with a Jenkins server.

func (*JenkinsBee) Action Uses

func (mod *JenkinsBee) Action(action bees.Action) []bees.Placeholder

Action triggers the action passed to it.

func (*JenkinsBee) ReloadOptions Uses

func (mod *JenkinsBee) ReloadOptions(options bees.BeeOptions)

ReloadOptions parses the config options and initializes the Bee.

func (*JenkinsBee) Run Uses

func (mod *JenkinsBee) Run(cin chan bees.Event)

Run executes the Bee's event loop.

type JenkinsBeeFactory Uses

type JenkinsBeeFactory struct {
    bees.BeeFactory
}

JenkinsBeeFactory is a factory for JenkinsBees.

func (*JenkinsBeeFactory) Actions Uses

func (factory *JenkinsBeeFactory) Actions() []bees.ActionDescriptor

Actions describes the available actions provided by this Bee.

func (*JenkinsBeeFactory) Description Uses

func (factory *JenkinsBeeFactory) Description() string

Description returns the description of this Bee.

func (*JenkinsBeeFactory) Events Uses

func (factory *JenkinsBeeFactory) Events() []bees.EventDescriptor

Events describes the available events provided by this Bee.

func (*JenkinsBeeFactory) ID Uses

func (factory *JenkinsBeeFactory) ID() string

ID returns the ID of this Bee.

func (*JenkinsBeeFactory) Image Uses

func (factory *JenkinsBeeFactory) Image() string

Image returns the filename of an image for this Bee.

func (*JenkinsBeeFactory) LogoColor Uses

func (factory *JenkinsBeeFactory) LogoColor() string

LogoColor returns the preferred logo background color (used by the admin interface).

func (*JenkinsBeeFactory) Name Uses

func (factory *JenkinsBeeFactory) Name() string

Name returns the name of this Bee.

func (*JenkinsBeeFactory) New Uses

func (factory *JenkinsBeeFactory) New(name, description string, options bees.BeeOptions) bees.BeeInterface

New returns a new Bee instance configured with the supplied options.

func (*JenkinsBeeFactory) Options Uses

func (factory *JenkinsBeeFactory) Options() []bees.BeeOptionDescriptor

Options returns the options available to configure this Bee.

type Job Uses

type Job struct {
    Name      string    `json:"name"`
    URL       string    `json:"url"`
    Color     string    `json:"color"`
    LastBuild LastBuild `json:"lastBuild"`
}

Job represents the JSON API response for a Jenkins job.

type LastBuild Uses

type LastBuild struct {
    Building bool `json:"building"`
}

Package jenkinsbee imports 5 packages (graph) and is imported by 14 packages. Updated 2017-03-04. Refresh now. Tools for package owners.