Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct { // TargetUrl points to API. TargetUrl string // Credentials is a credentials of API. Credentials *Credentials // Spec contains specification of an API. Spec []byte }
API is an internal representation of a service's API.
type BasicAuth ¶
type BasicAuth struct { // Username to use for authentication Username string // Password to use for authentication Password string }
BasicAuth contains details of BasicAuth Auth configuration
type CertificateGen ¶
type CertificateGen struct { // CommonName of the certificate CommonName string // Certificate generated by Application Registry Certificate []byte // PrivateKey generated by Application Registry PrivateKey []byte }
CertificateGen details of CertificateGen configuration
type Credentials ¶
type Credentials struct { // OAuth is OAuth configuration. OAuth *OAuth // BasicAuth is BasicAuth configuration. BasicAuth *BasicAuth // CertificateGen is CertificateGen configuration. CertificateGen *CertificateGen }
Credentials contains OAuth or BasicAuth configuration.
type Events ¶
type Events struct { // Spec contains data of events specification. Spec []byte }
Events contains specification for events.
type OAuth ¶
type OAuth struct { // URL to OAuth token provider. URL string // ClientID to use for authorization. ClientID string // ClientSecret to use for authorization. ClientSecret string }
OAuth contains details of OAuth configuration
type ServiceDefinition ¶
type ServiceDefinition struct { // ID of service ID string // Name of a service Name string // Provider of a service Provider string // Description of a service Description string // Api of a service Api *API // Events of a service Events *Events // Documentation of service Documentation []byte }
ServiceDefinition is an internal representation of a service.
Click to show internal directories.
Click to hide internal directories.