dynamicplans

package
v0.9.0-beta Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: Apache-2.0 Imports: 11 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 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"`
	IPAccessLists []*mongodbatlas.ProjectIPAccessList   `json:"ipAccessLists,omitempty"`
	Integrations  []*mongodbatlas.ThirdPartyIntegration `json:"integrations,omitempty"`

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

	// Deprecated: Use IPAccessLists instead!
	IPWhitelists []*mongodbatlas.ProjectIPWhitelist `json:"ipWhitelists,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