Version: v3.0.1 Latest Latest

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

Go to latest
Published: Feb 23, 2021 License: Apache-2.0 Imports: 16 Imported by: 0




This section is empty.


This section is empty.


This section is empty.


type Formatter

type Formatter interface {
	Format(*LintResults) string

func GetFormatter

func GetFormatter(fmtr string) (Formatter, error)

type LintOptions

type LintOptions struct {
	Files            []string
	Strict           bool
	DefaultNamespace string
	Formatter        Formatter
	ServiceClients   ServiceClients

type LintResult

type LintResult struct {
	File   string
	Errs   []error
	Linted bool

LintResult represents the result of linting objects from a single source

type LintResults

type LintResults struct {
	Results []*LintResult
	Success bool
	// contains filtered or unexported fields

LintResults represents the result of linting objects from multiple sources

func Lint

func Lint(ctx context.Context, opts *LintOptions) (*LintResults, error)

Lint reads all files, returns linting errors of all of the enitities of the specified kinds. Entities of other kinds are ignored.

func (*LintResults) Msg

func (l *LintResults) Msg() string

type ServiceClients

type ServiceClients struct {
	WorkflowsClient               workflowpkg.WorkflowServiceClient
	WorkflowTemplatesClient       workflowtemplatepkg.WorkflowTemplateServiceClient
	CronWorkflowsClient           cronworkflowpkg.CronWorkflowServiceClient
	ClusterWorkflowTemplateClient clusterworkflowtemplatepkg.ClusterWorkflowTemplateServiceClient

Jump to

Keyboard shortcuts

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