platform

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_platform_output_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Access

type Access struct {
	Database string `hcl:"database,optional"`
	Cloud    string `hcl:"cloud,optional"`
	Account  string `hcl:"account,optional"`
	Role     string `hcl:"role,optional"`
}

type Config

type Config struct {
	Platform string   `hcl:"platform,optional"`
	Event    string   `hcl:"event,optional"`
	Teams    []string `hcl:"teams,optional"`
}

type DeployConfig

type DeployConfig struct {
	Trigger []Trigger `hcl:"trigger,block"`
	Access  []Access  `hcl:"access,block"`
}

type Deployment

type Deployment struct {
	// contains filtered or unexported fields
}

func (*Deployment) Descriptor deprecated

func (*Deployment) Descriptor() ([]byte, []int)

Deprecated: Use Deployment.ProtoReflect.Descriptor instead.

func (*Deployment) ProtoMessage

func (*Deployment) ProtoMessage()

func (*Deployment) ProtoReflect

func (x *Deployment) ProtoReflect() protoreflect.Message

func (*Deployment) Reset

func (x *Deployment) Reset()

func (*Deployment) String

func (x *Deployment) String() string

type HTTPClient

type HTTPClient interface {
	Do(req *http.Request) (*http.Response, error)
}
var (
	Client HTTPClient
)

type Payload

type Payload struct {
	Policy string `json:"policy"`
}

type Platform

type Platform struct {
	// contains filtered or unexported fields
}

func (*Platform) Config

func (p *Platform) Config() (interface{}, error)

Config Implement Configurable

func (*Platform) ConfigSet

func (p *Platform) ConfigSet(config interface{}) error

ConfigSet Implement ConfigurableNotify

func (*Platform) DeployFunc

func (p *Platform) DeployFunc() interface{}

Implement Builder

func (*Platform) DestroyFunc

func (p *Platform) DestroyFunc() interface{}

Implement the Destroyer interface

type Trigger

type Trigger struct {
	Config      Config `hcl:"config,block"`
	Environment string `hcl:"environment,optional"`
	Approval    string `hcl:"approval"`
}

Jump to

Keyboard shortcuts

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