deploymentmanager

package
v0.0.0-...-c8b7f0f Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package deploymentmanager provides utilities for deployment manager.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Upsert

func Upsert(name string, deployment *Deployment, projectID string, rn runner.Runner) error

Upsert creates the deployment if it does not exist, else updates it.

Types

type Deployment

type Deployment struct {
	Imports   []*Import   `json:"imports,omitempty"`
	Resources []*Resource `json:"resources"`
}

Deployment represents a single deployment which can be used by the GCP Deployment Manager. TODO: move into separate package.

type Import

type Import struct {
	Path string `json:"path"`
}

Import respresents a deployment manager template import.

type Metadata

type Metadata struct {
	DependsOn []string `json:"dependsOn,omitempty"`
}

Metadata contains extra metadata of the deployment.

type Resource

type Resource struct {
	Name       string                 `json:"name"`
	Type       string                 `json:"type"`
	Properties map[string]interface{} `json:"properties,omitempty"`
	Metadata   *Metadata              `json:"metadata,omitempty"`
}

Resource defines the deployment manager resources to deploy.

Jump to

Keyboard shortcuts

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