apigee

package
v0.0.0-...-215fdc0 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBadRequest      = errors.New("bad request")
	ErrUnauthorized    = errors.New("unauthorized")
	ErrForbidden       = errors.New("forbidden")
	ErrNotFound        = errors.New("not found")
	ErrInternalServer  = errors.New("internal server error")
	ErrUnknownResponse = errors.New("unknown response status")
)

Functions

func DownloadBinaryContent

func DownloadBinaryContent(url string, outputPath string) error

func DownloadProxyRevision

func DownloadProxyRevision(in chan ProxyDeployment, environment string)

func DownloadSharedflowRevision

func DownloadSharedflowRevision(in chan SharedflowDeployment, environment string)

func Get

func Get(url string) ([]byte, error)

func GetDeployments

func GetDeployments(list []string, environment, path string) chan Deployment

func GetItemList

func GetItemList(url string) ([]string, error)

func GetProxyDeployments

func GetProxyDeployments(list []string, environment string) chan ProxyDeployment

func GetProxyList

func GetProxyList() ([]string, error)

func GetSharedFlowList

func GetSharedFlowList() ([]string, error)

func GetSharedflowDeployments

func GetSharedflowDeployments(list []string, environment string) chan SharedflowDeployment

func Unzip

func Unzip(src, dest string) error

Types

type Deployment

type Deployment interface{}

type ProxyDeployment

type ProxyDeployment struct {
	Environment  string `json:"environment"`
	Name         string `json:"name"`
	Organization string `json:"organization"`
	Revision     []struct {
		Configuration struct {
			BasePath string        `json:"basePath"`
			Steps    []interface{} `json:"steps"`
		} `json:"configuration"`
		Name   string        `json:"name"`
		Server []interface{} `json:"server"`
		State  string        `json:"state"`
	} `json:"revision"`
}

type SharedflowDeployment

type SharedflowDeployment struct {
	Environment  string `json:"environment"`
	Name         string `json:"name"`
	Organization string `json:"organization"`
	Revision     []struct {
		Configuration struct {
			BasePath      string        `json:"basePath"`
			ConfigVersion string        `json:"configVersion"`
			Steps         []interface{} `json:"steps"`
		} `json:"configuration"`
		Name   string `json:"name"`
		Server []struct {
			Pod struct {
				Name   string `json:"name"`
				Region string `json:"region"`
			} `json:"pod"`
			Status string   `json:"status"`
			Type   []string `json:"type"`
			UUID   string   `json:"uUID"`
		} `json:"server"`
		State string `json:"state"`
	} `json:"revision"`
}

Jump to

Keyboard shortcuts

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