Documentation ¶
Index ¶
- func NewApplicationRegistryClient(b PayloadBuilder, retryTime int, retries int) applicationRegistryClient
- func NewFileReader() fileReader
- func NewPayloadBuilder(fr FileReader, appName string) payloadBuilder
- type API
- type ApplicationRegistryClient
- type Basic
- type CSRFInfo
- type CertificateGen
- type Credentials
- type DocsObject
- type Documentation
- type ErrorResponse
- type Events
- type FileReader
- type Oauth
- type PayloadBuilder
- type PostServiceResponse
- type RegisterResponse
- type ServiceDetails
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewApplicationRegistryClient ¶
func NewApplicationRegistryClient(b PayloadBuilder, retryTime int, retries int) applicationRegistryClient
NewApplicationRegistryClient creates a applicationRegistryClient instance with the passed in interface
func NewPayloadBuilder ¶
func NewPayloadBuilder(fr FileReader, appName string) payloadBuilder
NewPayloadBuilder creates a serviceDetailsPayloadBuilder instance
Types ¶
type API ¶
type API struct { TargetURL string `json:"targetUrl"` Credentials *Credentials `json:"credentials,omitempty"` Spec json.RawMessage `json:"spec,omitempty"` SpecificationURL string `json:"specificationUrl,omitempty"` ApiType string `json:"apiType"` }
type ApplicationRegistryClient ¶
ApplicationRegistryClient is an interface containing all necessary functions required to register service in Kyma's application registry
type CertificateGen ¶
type Credentials ¶
type Credentials struct { Oauth *Oauth `json:"oauth,omitempty"` Basic *Basic `json:"basic,omitempty"` CertificateGen *CertificateGen `json:"certificateGen,omitempty"` }
type DocsObject ¶
type Documentation ¶
type Documentation struct { DisplayName string `json:"displayName"` Description string `json:"description"` Type string `json:"type"` Tags []string `json:"tags,omitempty"` Docs []DocsObject `json:"docs,omitempty"` }
type ErrorResponse ¶
type Events ¶
type Events struct {
Spec json.RawMessage `json:"spec,omitempty"`
}
type FileReader ¶
FileReader is an interface used to allow mocking file reading
type PayloadBuilder ¶
type PayloadBuilder interface { Build() (ServiceDetails, error) GetApplicationRegistryURL() string }
PayloadBuilder is an interface containing all necessary functions required to build an ServiceDetails structure
type PostServiceResponse ¶
type PostServiceResponse struct {
ID string `json:"id"`
}
type RegisterResponse ¶
type RegisterResponse struct {
ID string
}
RegisterResponse contain structure of response json
type ServiceDetails ¶
type ServiceDetails struct { Provider string `json:"provider"` Name string `json:"name"` Description string `json:"description"` ShortDescription string `json:"shortDescription,omitempty"` Identifier string `json:"identifier,omitempty"` Labels map[string]string `json:"labels,omitempty"` API *API `json:"api,omitempty"` Events *Events `json:"events,omitempty"` Documentation *Documentation `json:"documentation,omitempty"` }
ServiceDetails - main structure of content required to register service
Click to show internal directories.
Click to hide internal directories.