Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunLint ¶ added in v3.1.0
func RunLint(ctx context.Context, client apiclient.Client, kinds []string, output string, offline bool, opts LintOptions) error
RunLint lints the specified kinds in the specified files and prints the results to os.Stdout. If linting fails it will exit with status code 1.
Types ¶
type Formatter ¶
type Formatter interface {
Format(*LintResult) string
Summarize(*LintResults) string
}
func GetFormatter ¶
type LintOptions ¶
type LintResult ¶
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
}
Click to show internal directories.
Click to hide internal directories.