schema

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

******************************************************************************

  • Copyright (c) 2021 Red Hat, Inc.
  • Distributed under license by Red Hat, Inc. All rights reserved.
  • This program is made available under the terms of the
  • Eclipse Public License v2.0 which accompanies this distribution,
  • and is available at http://www.eclipse.org/legal/epl-v20.html *
  • Contributors:
  • Red Hat, Inc. *****************************************************************************

******************************************************************************

  • Copyright (c) 2022 Red Hat, Inc.
  • Distributed under license by Red Hat, Inc. All rights reserved.
  • This program is made available under the terms of the
  • Eclipse Public License v2.0 which accompanies this distribution,
  • and is available at http://www.eclipse.org/legal/epl-v20.html *
  • Contributors:
  • Red Hat, Inc. *****************************************************************************

******************************************************************************

  • Copyright (c) 2021 Red Hat, Inc.
  • Distributed under license by Red Hat, Inc. All rights reserved.
  • This program is made available under the terms of the
  • Eclipse Public License v2.0 which accompanies this distribution,
  • and is available at http://www.eclipse.org/legal/epl-v20.html *
  • Contributors:
  • Red Hat, Inc. *****************************************************************************

******************************************************************************

  • Copyright (c) 2021 Red Hat, Inc.
  • Distributed under license by Red Hat, Inc. All rights reserved.
  • This program is made available under the terms of the
  • Eclipse Public License v2.0 which accompanies this distribution,
  • and is available at http://www.eclipse.org/legal/epl-v20.html *
  • Contributors:
  • Red Hat, Inc. *****************************************************************************

******************************************************************************

  • Copyright (c) 2021 Red Hat, Inc.
  • Distributed under license by Red Hat, Inc. All rights reserved.
  • This program is made available under the terms of the
  • Eclipse Public License v2.0 which accompanies this distribution,
  • and is available at http://www.eclipse.org/legal/epl-v20.html *
  • Contributors:
  • Red Hat, Inc. *****************************************************************************

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComposerJson

type ComposerJson struct {
	Name       string            `json:"name"`
	Require    map[string]string `json:"require"`
	RequireDev map[string]string `json:"require-dev"`
}

type DevfileYaml added in v1.1.1

type DevfileYaml struct {
	StarterProjects []struct {
		Git struct {
			CheckoutFrom struct {
				Remote   string `yaml:"remote"`
				Revision string `yaml:"revision"`
			} `yaml:"checkoutFrom"`
			Remotes struct {
				Origin string `yaml:"origin"`
			} `yaml:"remotes"`
		} `yaml:"git"`
		SubDir string `yaml:"subDir"`
	} `yaml:"starterProjects"`
}

type DockerComposeFile

type DockerComposeFile struct {
	Services SVCS `yaml:"services"`
}

type DotNetProject

type DotNetProject struct {
	PropertyGroup struct {
		TargetFramework        string `xml:"TargetFramework"`
		TargetFrameworkVersion string `xml:"TargetFrameworkVersion"`
		TargetFrameworks       string `xml:"TargetFrameworks"`
	} `xml:"PropertyGroup"`
}

type LanguageCustomization

type LanguageCustomization struct {
	ConfigurationFiles []string `yaml:"configuration_files"`
	Component          bool     `yaml:"component"`
	ContainerComponent bool     `yaml:"container_component"`
	ExcludeFolders     []string `yaml:"exclude_folders,omitempty"`
	Aliases            []string `yaml:"aliases"`
	Disabled           bool     `default:"false" yaml:"disable_detection"`
}

type LanguageProperties

type LanguageProperties struct {
	Type               string   `yaml:"type,omitempty"`
	Color              string   `yaml:"color,omitempty"`
	Extensions         []string `yaml:"extensions,omitempty"`
	TmScope            string   `yaml:"tm_scope,omitempty"`
	AceMode            string   `yaml:"ace_mode,omitempty"`
	LanguageID         int      `yaml:"language_id,omitempty"`
	Aliases            []string `yaml:"aliases,omitempty"`
	CodemirrorMode     string   `yaml:"codemirror_mode,omitempty"`
	CodemirrorMimeType string   `yaml:"codemirror_mime_type,omitempty"`
	Group              string   `yaml:"group"`
	Filenames          []string `yaml:"filenames"`
}

type LanguagesCustomizations

type LanguagesCustomizations map[string]LanguageCustomization

type LanguagesProperties

type LanguagesProperties map[string]LanguageProperties

type PackageJson

type PackageJson struct {
	Name             string            `json:"name"`
	Dependencies     map[string]string `json:"dependencies"`
	DevDependencies  map[string]string `json:"devDependencies"`
	PeerDependencies map[string]string `json:"peerDependencies"`
	Scripts          Script            `json:"scripts"`
}

type Pom

type Pom struct {
	Dependencies struct {
		Text       string `xml:",chardata"`
		Dependency []struct {
			Text       string `xml:",chardata"`
			GroupId    string `xml:"groupId"`
			ArtifactId string `xml:"artifactId"`
			Version    string `xml:"version"`
			Scope      string `xml:"scope"`
		} `xml:"dependency"`
	} `xml:"dependencies"`
	Modules struct {
		Module string `xml:"module"`
	} `xml:"modules,omitempty"`
	Build struct {
		Plugins struct {
			Plugin []struct {
				GroupId       string `xml:"groupId"`
				ArtifactId    string `xml:"artifactId"`
				Version       string `xml:"version"`
				Scope         string `xml:"scope"`
				Configuration struct {
					JavaOpts string `xml:"javaOpts"`
				} `xml:"configuration"`
			} `xml:"plugin"`
		} `xml:"plugins"`
	} `xml:"build,omitempty"`
	ArtifactId string `xml:"artifactId"`
	Profiles   struct {
		Profile []struct {
			Build struct {
				Plugins struct {
					Plugin []struct {
						GroupId       string `xml:"groupId"`
						ArtifactId    string `xml:"artifactId"`
						Version       string `xml:"version"`
						Scope         string `xml:"scope"`
						Configuration struct {
							JavaOpts string `xml:"javaOpts"`
						} `xml:"configuration"`
					} `xml:"plugin"`
				} `xml:"plugins"`
			} `xml:"build,omitempty"`
		} `xml:"profile"`
	} `xml:"profiles"`
}

type SVCS

type SVCS struct {
	Web WebService `yaml:"web"`
}

type Script

type Script struct {
	Dev   string `json:"dev"`
	Start string `json:"start"`
}

type WebService

type WebService struct {
	Ports  []interface{} `yaml:"ports"`
	Expose []string      `yaml:"expose"`
}

Jump to

Keyboard shortcuts

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