dkron: github.com/distribworks/dkron/cmd Index | Files

package cmd

import "github.com/distribworks/dkron/cmd"

Index

Package Files

agent.go dkron.go doc.go keygen.go leave.go plugins.go raft.go version.go

Variables

var ShutdownCh chan (struct{})

func Execute Uses

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func UnmarshalTags Uses

func UnmarshalTags(tags []string) (map[string]string, error)

UnmarshalTags is a utility function which takes a slice of strings in key=value format and returns them as a tag mapping.

type Plugins Uses

type Plugins struct {
    Processors map[string]dkron.ExecutionProcessor
    Executors  map[string]dkron.Executor
    LogLevel   string
    NodeName   string
}

func (*Plugins) DiscoverPlugins Uses

func (p *Plugins) DiscoverPlugins() error

Discover plugins located on disk

We look in the following places for plugins:

1. Dkron configuration path 2. Path where Dkron is installed

Whichever file is discoverd LAST wins.

Package cmd imports 22 packages (graph) and is imported by 1 packages. Updated 2019-11-09. Refresh now. Tools for package owners.