bundle

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateSkycapFiles

func CreateSkycapFiles(outputDir string,
	templateRepository string,
	branch string,
	packName string,
	githubURL string,
	services []*common.Service,
	databases []common.Database) error

Types

type BundleBaseTemplates

type BundleBaseTemplates struct {
	Name         string               `json:"name"`
	Repo         string               `json:"repo"`
	Branch       string               `json:"branch"`
	Stencils     []*BundleStencil     `json:"stencils"`
	Policies     []*BundlePolicy      `json:"policies"`
	Transformers []*BundleTransformer `json:"transformers"`
}

type BundleHelmRelease

type BundleHelmRelease struct {
	UID           string `json:"uid"`
	ChartName     string `json:"chart_name"`
	DisplayName   string `json:"display_name"`
	Version       string `json:"version"`
	RepositoryURL string `json:"repository_url"`
	ValuesFile    string `json:"values_file"`
}

type BundlePolicy

type BundlePolicy struct {
	UID      string   `json:"uid"`
	Name     string   `json:"name"`
	Selector string   `json:"selector"`
	Sequence int      `json:"sequence"`
	Tags     []string `json:"tags"`
}

type BundleStencil

type BundleStencil struct {
	UID              string   `json:"uid"`
	Filename         string   `json:"filename"`
	TemplateFilename string   `json:"template_filename"`
	ContextID        string   `json:"context_id"`
	Status           int      `json:"status"`
	Tags             []string `json:"tags"`
	Sequence         int      `json:"sequence"`
}

type BundleStencilGroup

type BundleStencilGroup struct {
	UID  string   `json:"uid"`
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

type BundleTransformer

type BundleTransformer struct {
	UID  string   `json:"uid"`
	Name string   `json:"name"`
	Tags []string `json:"tags"`
}

type ManifestBundle

type ManifestBundle struct {
	Version        string                 `json:"version"`
	Metadata       *Metadata              `json:"metadata"`
	UID            string                 `json:"uid"`
	Name           string                 `json:"name"`
	StencilGroups  []*BundleStencilGroup  `json:"stencil_groups"`
	BaseTemplates  []*BundleBaseTemplates `json:"base_template"`
	Tags           []string               `json:"tags"`
	HelmReleases   []*BundleHelmRelease   `json:"helm_releases"`
	Configurations []string               `json:"configuration"`
}

type Metadata

type Metadata struct {
	App         string    `json:"app"`
	Timestamp   time.Time `json:"timestamp"`
	Annotations []string  `json:"annotations"`
}

type PolicyTemplate

type PolicyTemplate struct{}

type StencilTemplate

type StencilTemplate struct {
	Name              string   `json:"name"`
	FilenamePattern   string   `json:"filename_pattern"`
	Filename          string   `json:"filename"`
	Description       string   `json:"description"`
	ContextType       string   `json:"context_type"`
	Tags              []string `json:"tags"`
	PreferredSequence int      `json:"preferred_sequence"`
	Suggested         bool     `json:"suggested"`
	MinUsage          int      `json:"min_usage"`
	MaxUsage          int      `json:"max_usage"`
}

type TemplateJSON

type TemplateJSON struct {
	Version     string           `json:"version"`
	Public      bool             `json:"public"`
	Name        string           `json:"name"`
	Icon        string           `json:"icon"`
	LongName    string           `json:"long_name"`
	Description string           `json:"description"`
	Templates   *TemplatesStruct `json:"templates"`
}

type TemplatesStruct

type TemplatesStruct struct {
	Stencils     []*StencilTemplate      `json:"stencils"`
	Policies     []*PolicyTemplate       `json:"policies"`
	Transformers []*TransformersTemplate `json:"transformers"`
}

type TransformersTemplate

type TransformersTemplate struct{}

Jump to

Keyboard shortcuts

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