Versions in this module Expand all Collapse all v0 v0.0.1 Apr 29, 2020 Changes in this version + func Bool(v bool) *bool + func CheckResponse(r *http.Response) error + func Int(v int) *int + func StreamToString(stream io.Reader) string + func String(v string) *string + type App struct + ApigeeId string + type Attribute struct + Name string + Value string + type Company struct + Apps []string + Attributes []Attribute + DisplayName string + Name string + Status string + type CompanyApp struct + ApiProducts []string + AppFamily string + AppId string + Attributes []Attribute + CallbackUrl string + CompanyName string + Credentials []Credential + Name string + Scopes []string + Status string + type CompanyAppService interface + Create func(string, CompanyApp) (*CompanyApp, *Response, error) + Delete func(string, string) (*Response, error) + Get func(string, string) (*CompanyApp, *Response, error) + Update func(string, CompanyApp) (*CompanyApp, *Response, error) + type CompanyAppServiceOp struct + func (s *CompanyAppServiceOp) Create(companyName string, companyApp CompanyApp) (*CompanyApp, *Response, error) + func (s *CompanyAppServiceOp) Delete(companyName string, name string) (*Response, error) + func (s *CompanyAppServiceOp) Get(companyName string, name string) (*CompanyApp, *Response, error) + func (s *CompanyAppServiceOp) Update(companyName string, companyApp CompanyApp) (*CompanyApp, *Response, error) + type CompanyService interface + Create func(Company) (*Company, *Response, error) + Delete func(string) (*Response, error) + Get func(string) (*Company, *Response, error) + Update func(Company) (*Company, *Response, error) + type CompanyServiceOp struct + func (s *CompanyServiceOp) Create(company Company) (*Company, *Response, error) + func (s *CompanyServiceOp) Delete(name string) (*Response, error) + func (s *CompanyServiceOp) Get(name string) (*Company, *Response, error) + func (s *CompanyServiceOp) Update(company Company) (*Company, *Response, error) + type Credential struct + ApiProducts []CredentialApiProduct + Attributes []Attribute + ConsumerKey string + ConsumerSecret string + ExpiresAt int + IssuedAt int + Scopes []string + type CredentialApiProduct struct + ApiProduct string + Status string + type DeletedProxyInfo struct + Name string + type DeletedSharedFlowInfo struct + Name string + type Developer struct + Apps []string + Attributes []Attribute + DeveloperId string + Email string + FirstName string + LastName string + Status string + UserName string + type DeveloperApp struct + ApiProducts []string + AppFamily string + AppId string + Attributes []Attribute + CallbackUrl string + Credentials []Credential + DeveloperId string + KeyExpiresIn int + Name string + Scopes []string + Status string + type DeveloperAppService interface + Create func(string, DeveloperApp) (*DeveloperApp, *Response, error) + Delete func(string, string) (*Response, error) + Get func(string, string) (*DeveloperApp, *Response, error) + Update func(string, DeveloperApp) (*DeveloperApp, *Response, error) + type DeveloperAppServiceOp struct + func (s *DeveloperAppServiceOp) Create(email string, developerApp DeveloperApp) (*DeveloperApp, *Response, error) + func (s *DeveloperAppServiceOp) Delete(email string, name string) (*Response, error) + func (s *DeveloperAppServiceOp) Get(email string, name string) (*DeveloperApp, *Response, error) + func (s *DeveloperAppServiceOp) Update(email string, developerApp DeveloperApp) (*DeveloperApp, *Response, error) + type DeveloperService interface + Create func(Developer) (*Developer, *Response, error) + Delete func(string) (*Response, error) + Get func(string) (*Developer, *Response, error) + Update func(Developer) (*Developer, *Response, error) + type DeveloperServiceOp struct + func (s *DeveloperServiceOp) Create(developer Developer) (*Developer, *Response, error) + func (s *DeveloperServiceOp) Delete(email string) (*Response, error) + func (s *DeveloperServiceOp) Get(email string) (*Developer, *Response, error) + func (s *DeveloperServiceOp) Update(developer Developer) (*Developer, *Response, error) + type EdgeAuth struct + AccessToken string + NetrcPath string + Password string + Username string + type EdgeClient struct + BaseURL *url.URL + Companies CompanyService + CompanyApps CompanyAppService + DeveloperApps DeveloperAppService + Developers DeveloperService + Products ProductsService + Proxies ProxiesService + SharedFlows SharedFlowService + TargetServers TargetServersService + UserAgent string + func NewEdgeClient(o *EdgeClientOptions) (*EdgeClient, error) + func (c *EdgeClient) Do(req *http.Request, v interface{}) (*Response, error) + func (c *EdgeClient) NewRequest(method, urlStr string, body interface{}, contentTypeOverride string) (*http.Request, error) + func (c *EdgeClient) OnRequestCompleted(rc RequestCompletionCallback) + type EdgeClientOptions struct + Auth *EdgeAuth + Debug bool + MgmtUrl string + Org string + type EdgeServer struct + Status string + Type []string + Uuid string + type EnvironmentDeployment struct + Name string + Revision []RevisionDeployment + type ErrorResponse struct + Message string + Response *http.Response + func (r *ErrorResponse) Error() string + type ListOptions struct + Expand bool + type Product struct + ApiResources []string + ApprovalType string + Attributes []Attribute + Description string + DisplayName string + Environments []string + Name string + Proxies []string + Quota string + QuotaInterval string + QuotaTimeUnit string + Scopes []string + type ProductsService interface + Create func(Product) (*Product, *Response, error) + Delete func(string) (*Response, error) + Get func(string) (*Product, *Response, error) + Update func(Product) (*Product, *Response, error) + type ProductsServiceOp struct + func (s *ProductsServiceOp) Create(product Product) (*Product, *Response, error) + func (s *ProductsServiceOp) Delete(name string) (*Response, error) + func (s *ProductsServiceOp) Get(name string) (*Product, *Response, error) + func (s *ProductsServiceOp) Update(product Product) (*Product, *Response, error) + type ProxiesService interface + Delete func(string) (*DeletedProxyInfo, *Response, error) + DeleteRevision func(string, Revision) (*ProxyRevision, *Response, error) + Deploy func(string, string, Revision, int, bool) (*ProxyRevisionDeployment, *Response, error) + Export func(string, Revision) (string, *Response, error) + Get func(string) (*Proxy, *Response, error) + GetDeployments func(string) (*ProxyDeployment, *Response, error) + Import func(string, string) (*ProxyRevision, *Response, error) + List func() ([]string, *Response, error) + ReDeploy func(string, string, Revision, int, bool) (*ProxyRevisionDeployments, *Response, error) + Undeploy func(string, string, Revision) (*ProxyRevisionDeployment, *Response, error) + type ProxiesServiceOp struct + func (s *ProxiesServiceOp) Delete(proxyName string) (*DeletedProxyInfo, *Response, error) + func (s *ProxiesServiceOp) DeleteRevision(proxyName string, rev Revision) (*ProxyRevision, *Response, error) + func (s *ProxiesServiceOp) Deploy(proxyName, env string, rev Revision, delay int, override bool) (*ProxyRevisionDeployment, *Response, error) + func (s *ProxiesServiceOp) Export(proxyName string, rev Revision) (string, *Response, error) + func (s *ProxiesServiceOp) Get(proxy string) (*Proxy, *Response, error) + func (s *ProxiesServiceOp) GetDeployments(proxy string) (*ProxyDeployment, *Response, error) + func (s *ProxiesServiceOp) Import(proxyName string, source string) (*ProxyRevision, *Response, error) + func (s *ProxiesServiceOp) List() ([]string, *Response, error) + func (s *ProxiesServiceOp) ReDeploy(proxyName, env string, rev Revision, delay int, override bool) (*ProxyRevisionDeployments, *Response, error) + func (s *ProxiesServiceOp) Undeploy(proxyName, env string, rev Revision) (*ProxyRevisionDeployment, *Response, error) + type Proxy struct + MetaData ProxyMetadata + Name string + Revisions []Revision + type ProxyDeployment struct + Environments []EnvironmentDeployment + Name string + Organization string + type ProxyMetadata struct + CreatedAt Timestamp + CreatedBy string + LastModifiedAt Timestamp + LastModifiedBy string + type ProxyRevision struct + ContextInfo string + CreatedAt Timestamp + CreatedBy string + Description string + DisplayName string + LastModifiedAt Timestamp + LastModifiedBy string + Name string + Policies []string + ProxyEndpoints []string + Resources []string + Revision Revision + TargetEndpoints []string + TargetServers []string + Type string + type ProxyRevisionDeployment struct + Environment string + Name string + Organization string + Revision Revision + Servers []EdgeServer + State string + type ProxyRevisionDeployments struct + Environments []ProxyRevisionDeployment + Name string + Organization string + type RequestCompletionCallback func(*http.Request, *http.Response) + type Response struct + type Revision int + func (r *Revision) MarshalJSON() ([]byte, error) + func (r *Revision) UnmarshalJSON(b []byte) error + func (r Revision) String() string + type RevisionDeployment struct + Number Revision + Servers []EdgeServer + State string + type SSLInfo struct + Ciphers []string + ClientAuthEnabled string + IgnoreValidationErrors bool + KeyAlias string + KeyStore string + Protocols []string + SSLEnabled string + TrustStore string + type SharedFlow struct + MetaData SharedFlowMetadata + Name string + Revisions []Revision + type SharedFlowDeployment struct + Environments []EnvironmentDeployment + Name string + Organization string + type SharedFlowMetadata struct + CreatedAt Timestamp + CreatedBy string + LastModifiedAt Timestamp + LastModifiedBy string + type SharedFlowRevision struct + ContextInfo string + CreatedAt Timestamp + CreatedBy string + Description string + DisplayName string + LastModifiedAt Timestamp + LastModifiedBy string + Name string + Policies []string + Resources []string + Revision Revision + TargetEndpoints []string + TargetServers []string + Type string + type SharedFlowRevisionDeployment struct + Environment string + Name string + Organization string + Revision Revision + Servers []EdgeServer + State string + type SharedFlowRevisionDeployments struct + Environments []SharedFlowRevisionDeployment + Name string + Organization string + type SharedFlowService interface + Delete func(string) (*DeletedSharedFlowInfo, *Response, error) + Deploy func(string, string, Revision, int, bool) (*SharedFlowRevisionDeployment, *Response, error) + Get func(string) (*SharedFlow, *Response, error) + GetDeployments func(string) (*SharedFlowDeployment, *Response, error) + Import func(string, string) (*SharedFlowRevision, *Response, error) + List func() ([]string, *Response, error) + ReDeploy func(string, string, Revision, int, bool) (*SharedFlowRevisionDeployments, *Response, error) + Undeploy func(string, string, Revision) (*SharedFlowRevisionDeployment, *Response, error) + type SharedFlowServiceOp struct + func (s *SharedFlowServiceOp) Delete(name string) (*DeletedSharedFlowInfo, *Response, error) + func (s *SharedFlowServiceOp) Deploy(name, env string, rev Revision, delay int, override bool) (*SharedFlowRevisionDeployment, *Response, error) + func (s *SharedFlowServiceOp) Get(name string) (*SharedFlow, *Response, error) + func (s *SharedFlowServiceOp) GetDeployments(name string) (*SharedFlowDeployment, *Response, error) + func (s *SharedFlowServiceOp) Import(name string, source string) (*SharedFlowRevision, *Response, error) + func (s *SharedFlowServiceOp) List() ([]string, *Response, error) + func (s *SharedFlowServiceOp) ReDeploy(sharedFlowName, env string, rev Revision, delay int, override bool) (*SharedFlowRevisionDeployments, *Response, error) + func (s *SharedFlowServiceOp) Undeploy(sharedFlowName, env string, rev Revision) (*SharedFlowRevisionDeployment, *Response, error) + type TargetServer struct + Enabled bool + Host string + Name string + Port int + SSLInfo *SSLInfo + type TargetServersService interface + Create func(TargetServer, string) (*TargetServer, *Response, error) + Delete func(string, string) (*Response, error) + Get func(string, string) (*TargetServer, *Response, error) + Update func(TargetServer, string) (*TargetServer, *Response, error) + type TargetServersServiceOp struct + func (s *TargetServersServiceOp) Create(targetServer TargetServer, env string) (*TargetServer, *Response, error) + func (s *TargetServersServiceOp) Delete(name string, env string) (*Response, error) + func (s *TargetServersServiceOp) Get(name string, env string) (*TargetServer, *Response, error) + func (s *TargetServersServiceOp) Update(targetServer TargetServer, env string) (*TargetServer, *Response, error) + type Timestamp struct + func (t *Timestamp) UnmarshalJSON(b []byte) error + func (t Timestamp) Equal(u Timestamp) bool + func (t Timestamp) MarshalJSON() ([]byte, error) + func (t Timestamp) String() string