Versions in this module Expand all Collapse all v1 v1.0.1 Oct 4, 2018 Changes in this version + type APIRequest struct + Body string + ContentType string + Method string + URL string + type ApiDetails struct + ContextPath string + CreatedAt int + DeployedAt int + Description string + ID string + Labels []string + Name string + Owner UserReference + PictureURL string + Proxy struct{ ... } + State ApiState + Tags []string + UpdatedAdd int + Version string + Visibility ApiVisibility + func (ai ApiDetails) String() string + type ApiDetailsEndpoint struct + Http ApiDetailsEndpointHttp + IsBackup bool + Name string + SSL ApiDetailsEndpointSSL + Target string + Type string + Weight int + func MakeApiDetailsEndpoint(name, target string) ApiDetailsEndpoint + func (ai ApiDetailsEndpoint) String() string + type ApiDetailsEndpointHttp struct + ConnectTimeoutMS int + FollowRedirects bool + IdleTimeoutMS int + KeepAlive bool + MaxConcurrentConnections int + Pipelining bool + ReadTimeoutMS int + UseCompression bool + type ApiDetailsEndpointSSL struct + IsEnabled bool + PublicCertPEM string + TrustAllCertificates bool + VerifyHostnameInPublicCert bool + type ApiDetailsPath struct + type ApiInfo struct + ContextPath string + CreatedAt int + Description string + ID string + Labels []string + Manageable bool + Name string + NumberOfRatings int + Owner UserReference + PictureURL string + State ApiState + UpdatedAdd int + Version string + Views []string + Visibility ApiVisibility + func (ai ApiInfo) String() string + type ApiMetadata struct + ApiID string + DefaultValue string + Format ApiMetadataFormat + Key string + LocalValue string + Name string + func (ai ApiMetadata) IsLocal() bool + func (ai ApiMetadata) String() string + func (ai ApiMetadata) Value() string + type ApiMetadataFormat string + const ApiMetadataFormat_Boolean + const ApiMetadataFormat_Date + const ApiMetadataFormat_Mail + const ApiMetadataFormat_Numeric + const ApiMetadataFormat_String + const ApiMetadataFormat_URL + type ApiState string + const ApiState_Started + const ApiState_Stopped + type ApiVisibility string + const ApiVisibility_Private + const ApiVisibility_Public + type ConfigOptions struct + APICallTimeout time.Duration + type GraviteeSession struct + Authorization string + ConfigOptions *ConfigOptions + Host string + Transport *http.Transport + func Connect(host, username, password string, configOptions *ConfigOptions) (*GraviteeSession, error) + func (s *GraviteeSession) AddOrUpdateEndpoints(id string, endpoints []ApiDetailsEndpoint, replaceAll bool) error + func (s *GraviteeSession) DeployAPI(id string) error + func (s *GraviteeSession) GetAPI(id string) (*ApiDetails, error) + func (s *GraviteeSession) GetAPIMetadata(id string) ([]ApiMetadata, error) + func (s *GraviteeSession) GetAPIsByLabel(label string) ([]ApiInfo, error) + func (s *GraviteeSession) GetAllAPIs() ([]ApiInfo, error) + func (s *GraviteeSession) GetLocalAPIMetadata(id string, metadataKey string) (*ApiMetadata, error) + func (s *GraviteeSession) Ping() (bool, error) + func (s *GraviteeSession) SetLocalAPIMetadata(id string, metadataKey string, value string, format ApiMetadataFormat) error + func (s *GraviteeSession) String() string + func (s *GraviteeSession) UnsetLocalAPIMetadata(id string, metadataKey string) error + type RequestError struct + HttpStatus int + Message string + func (r RequestError) Error() string + type UserReference struct + DisplayName string + Id string