project

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloudAccount added in v1.2.0

func CloudAccount(fqdn, account string) basic.Op

func CloudBindingOp added in v1.2.0

func CloudBindingOp(fqdn, account, plan string) basic.Op

CloudBindingOp sets `clouds.<fqdn>.{account, plan}` in one call. Each child uses an independent c.Config() chain because yaseer's Query.Get() mutates the receiver.

func CloudPlan added in v1.2.0

func CloudPlan(fqdn, plan string) basic.Op

func Description

func Description(value string) basic.Op

func Email

func Email(value string) basic.Op

func Id

func Id(value string) basic.Op

func Name

func Name(value string) basic.Op

Types

type CloudBinding added in v1.2.0

type CloudBinding struct {
	Account string `json:"account,omitempty" yaml:"account,omitempty"`
	Plan    string `json:"plan,omitempty"    yaml:"plan,omitempty"`
}

CloudBinding is the (account, plan) pair a project pins to on a specific tau cloud (identified by FQDN).

func (CloudBinding) IsEmpty added in v1.2.0

func (b CloudBinding) IsEmpty() bool

type Getter

type Getter interface {
	basic.Getter
	Applications() []string
	Tags() []string
	Email() string
	// CloudBinding returns the (account, plan) pair the project declares
	// for the given cloud FQDN, and a flag indicating whether the entry
	// exists. Both fields are optional; missing entries (dream / local /
	// projects not deployed to that cloud) return (zero, false).
	CloudBinding(fqdn string) (CloudBinding, bool)
	// Clouds returns the FQDNs the project has declared bindings for.
	// Empty when the project doesn't declare any.
	Clouds() []string
	Services(string) (local []string, global []string)
	Libraries(string) (local []string, global []string)
	Websites(string) (local []string, global []string)
	Messaging(string) (local []string, global []string)
	Databases(string) (local []string, global []string)
	Storages(string) (local []string, global []string)
	Domains(string) (local []string, global []string)
	SmartOps(string) (local []string, global []string)
	Functions(string) (local []string, global []string)
}

type Option

type Option func(s *project) error

func SystemFS

func SystemFS(path string) Option

func VirtualFS

func VirtualFS(fs afero.Fs, path string) Option

type Project

type Project interface {
	Get() Getter
	Set(sync bool, ops ...basic.Op) (err error)
	Delete(attributes ...string) (err error)
	Prettify(p pretty.Prettier) map[string]interface{}
	ResourceMethods() []pretty.PrettyResourceIface

	Application(name string) (application.Application, error)
	Database(name string, application string) (databases.Database, error)
	Domain(name string, application string) (domains.Domain, error)
	Function(name string, application string) (functions.Function, error)
	Library(name string, application string) (libraries.Library, error)
	Messaging(name string, application string) (messaging.Messaging, error)
	Service(name string, application string) (services.Service, error)
	SmartOps(name string, application string) (smartops.SmartOps, error)
	Storage(name string, application string) (storages.Storage, error)
	Website(name string, application string) (website.Website, error)
}

func Open

func Open(options ...Option) (Project, error)

Jump to

Keyboard shortcuts

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