apigee

package
v0.0.0-...-740120c Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2024 License: MIT Imports: 14 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) chan struct{}

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 GetEnvironments

func GetEnvironments() ([]string, error)

func GetItemList

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

func GetProxyList

func GetProxyList() ([]string, error)

func GetSharedFlowList

func GetSharedFlowList() ([]string, error)

func GetSharedflowDeployments

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

func ListAllTraffic

func ListAllTraffic(environment string, filterProxy string, from string, to string) ([]string, [][]string, error)

func StreamProxyDeployments

func StreamProxyDeployments(list []string, environment string) (chan ProxyDeployment, chan UndeployedEntity)

func Unzip

func Unzip(src, dest string) error

Types

type Deployment

type Deployment interface{}

type Dimension

type Dimension struct {
	Name    string   `json:"name,omitempty"`
	Metrics []Metric `json:"metrics,omitempty"`
}

type Environment

type Environment struct {
	Name       string      `json:"name,omitempty"`
	Dimensions []Dimension `json:"dimensions,omitempty"`
}

type Metric

type Metric struct {
	Name   string   `json:"name,omitempty"`
	Values []string `json:"values,omitempty"`
}

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"`
}

type StatsTrafficList

type StatsTrafficList struct {
	Environments []Environment `json:"environments,omitempty"`
}

type UndeployedEntity

type UndeployedEntity struct {
	Name         string
	Environment  string
	Organization string
	State        string
}

Jump to

Keyboard shortcuts

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