connectors

package
v0.0.0-...-8873498 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SUPPORTED_CICD_PLATFORMS = []CICDPlatform{
	{
		Name:               "github_actions",
		RelevantFilesRegex: "\\.github/workflows/.*\\.ya?ml",
		GithubValid:        true,
		GitlabValid:        false,
	},
	{
		Name:               "jfrog_pipelines",
		RelevantFilesRegex: "jfrog.*\\.ya?ml",
		GithubValid:        true,
		GitlabValid:        true,
	},
	{
		Name:               "gitlab_ci",
		RelevantFilesRegex: "\\.gitlab-ci\\.ya?ml",
		GithubValid:        false,
		GitlabValid:        true,
	},
}

Functions

func EscapeJsonKey

func EscapeJsonKey(key string) string

func YamlToJson

func YamlToJson(byteContent []byte) ([]byte, error)

Types

type CICDPlatform

type CICDPlatform struct {
	Name               string
	RelevantFilesRegex string
	GithubValid        bool
	GitlabValid        bool
}

type OwnerWithRepo

type OwnerWithRepo struct {
	Repo  string
	Owner string
}

func SplitParentRepo

func SplitParentRepo(args []string) []*OwnerWithRepo

type PipelineFile

type PipelineFile struct {
	RelativePath string                 `json:"relativePath"`
	Filename     string                 `json:"filename"`
	Origin       string                 `json:"origin"`
	Content      map[string]interface{} `json:"content"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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