common

package
v0.0.0-...-94a1dca Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE_CICD = "cicd"
View Source
const MODULE_Security = "security"

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiError

type ApiError struct {
	HttpStatusCode    int         `json:"-"`
	Code              string      `json:"code,omitempty"`
	InternalMessage   string      `json:"internalMessage,omitempty"`
	UserMessage       interface{} `json:"userMessage,omitempty"`
	UserDetailMessage string      `json:"userDetailMessage,omitempty"`
}

type BuildPackMetadata

type BuildPackMetadata struct {
	LanguageBuilder []*LanguageBuilder
}

type BuilderLanguageMetadata

type BuilderLanguageMetadata struct {
	Id                  string
	BuilderLangEnvParam string
}

type DockerfileTemplateMetadata

type DockerfileTemplateMetadata struct {
	LanguageFrameworks []*LanguageFramework
}

type Framework

type Framework string
const (
	MAVEN  Framework = "Maven"
	GRADLE Framework = "Gradle"
	DJANGO Framework = "Django"
	FLASK  Framework = "Flask"
	RAILS  Framework = "Rails"
)

type GroupVersionKind

type GroupVersionKind struct {
	Group   string `json:"group"`
	Version string `json:"version"`
	Kind    string `json:"kind"`
}

type GvkLevelFilter

type GvkLevelFilter struct {
	Gvk                *GroupVersionKind   `json:"gvk"`
	ResourceIdentifier *ResourceIdentifier `json:"filter"`
}

type Language

type Language string
const (
	NODE   Language = "Node"
	JAVA   Language = "Java"
	PYTHON Language = "Python"
	PHP    Language = "PHP"
	RUBY   Language = "Ruby"
	GO     Language = "Go"
	DOTNET Language = ".NET"
)

type LanguageBuilder

type LanguageBuilder struct {
	Language                Language
	LanguageIcon            string
	Versions                []string
	BuilderLanguageMetadata []*BuilderLanguageMetadata
}

type LanguageFramework

type LanguageFramework struct {
	Language     Language
	Framework    Framework
	LanguageIcon string
	TemplateUrl  string
}

type Module

type Module struct {
	Id                            int             `json:"id"`
	Name                          string          `json:"name"`
	BaseMinVersionSupported       string          `json:"baseMinVersionSupported"`
	IsIncludedInLegacyFullPackage bool            `json:"isIncludedInLegacyFullPackage"`
	Assets                        []string        `json:"assets"`
	Description                   string          `json:"description"`
	Title                         string          `json:"title"`
	Icon                          string          `json:"icon"`
	Info                          string          `json:"info"`
	DependentModules              []int           `json:"dependentModules"`
	ResourceFilter                *ResourceFilter `json:"resourceFilter,omitempty"`
	ModuleType                    string          `json:"moduleType"`
}

type Release

type Release struct {
	TagName             string    `json:"tagName"`
	ReleaseName         string    `json:"releaseName"`
	CreatedAt           time.Time `json:"createdAt"`
	PublishedAt         time.Time `json:"publishedAt"`
	Body                string    `json:"body"`
	Prerequisite        bool      `json:"prerequisite"`
	PrerequisiteMessage string    `json:"prerequisiteMessage"`
	TagLink             string    `json:"tagLink"`
}

type ReleaseList

type ReleaseList struct {
	Releases []*Release `json:"releases"`
}

type ResourceFilter

type ResourceFilter struct {
	GlobalFilter    *ResourceIdentifier `json:"globalFilter,omitempty"`
	GvkLevelFilters []*GvkLevelFilter   `json:"gvkLevelFilters,omitempty"`
}

type ResourceIdentifier

type ResourceIdentifier struct {
	Labels map[string]string `json:"labels"`
}

type Response

type Response struct {
	Code   int         `json:"code,omitempty"`
	Status string      `json:"status,omitempty"`
	Result interface{} `json:"result,omitempty"`
	Errors []*ApiError `json:"errors,omitempty"`
}

Jump to

Keyboard shortcuts

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