dynamicplans

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromEnv

func FromEnv() ([]*template.Template, error)

Types

type Binding

type Binding struct {
}

Binding info

type Context

type Context map[string]interface{}

func (Context) With

func (c Context) With(key string, value interface{}) Context

type Plan

type Plan struct {
	Version             string                             `json:"version,omitempty"`
	Name                string                             `json:"name,omitempty"`
	Description         string                             `json:"description,omitempty"`
	Free                *bool                              `json:"free,omitempty"`
	APIKey              *credentials.APIKey                `json:"apiKey,omitempty"`
	Project             *mongodbatlas.Project              `json:"project,omitempty"`
	Cluster             *mongodbatlas.Cluster              `json:"cluster,omitempty"`
	DatabaseUsers       []*mongodbatlas.DatabaseUser       `json:"databaseUsers,omitempty"`
	IPWhitelists        []*mongodbatlas.ProjectIPWhitelist `json:"ipWhitelists,omitempty"`
	DefaultBindingRoles *[]mongodbatlas.Role               `json:"defaultBindingRoles"`
	Bindings            []*Binding                         `json:"bindings,omitempty"` // READ ONLY! Populated by bind()

	Settings map[string]string `json:"settings,omitempty"`
}

Plan represents a set of MongoDB Atlas resources

func (*Plan) SafeCopy

func (p *Plan) SafeCopy() Plan

func (Plan) String

func (p Plan) String() string

type TemplateContainer

type TemplateContainer struct {
	*template.Template
}

Helper type to get a better template representation in JSON

func (TemplateContainer) MarshalJSON

func (t TemplateContainer) MarshalJSON() ([]byte, error)

func (TemplateContainer) String

func (t TemplateContainer) String() string

Jump to

Keyboard shortcuts

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