Documentation ¶
Index ¶
- type DGateClient
- type DGateCollectionClient
- type DGateDocumentClient
- type DGateDomainClient
- type DGateModuleClient
- type DGateNamespaceClient
- type DGateRouteClient
- type DGateSecretClient
- type DGateServiceClient
- type DocumentPayload
- type ListResponseWrapper
- type M
- type NamePayload
- type NamespacePayload
- type Options
- type ResponseWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DGateClient ¶
type DGateClient interface { Init(string, *http.Client, ...Options) error DGateNamespaceClient DGateModuleClient DGateRouteClient DGateServiceClient DGateDomainClient DGateCollectionClient DGateDocumentClient DGateSecretClient }
func NewDGateClient ¶
func NewDGateClient() DGateClient
type DGateCollectionClient ¶ added in v0.8.0
type DGateCollectionClient interface { GetCollection(name, namespace string) (*spec.Collection, error) CreateCollection(svc *spec.Collection) error DeleteCollection(name, namespace string) error ListCollection(namespace string) ([]*spec.Collection, error) }
type DGateDocumentClient ¶ added in v0.8.0
type DGateDocumentClient interface { GetDocument(id, namespace, collection string) (*spec.Document, error) CreateDocument(doc *spec.Document) error DeleteDocument(id, namespace, collection string) error DeleteAllDocument(namespace, collection string) error ListDocument(namespace, collection string) ([]*spec.Document, error) }
type DGateDomainClient ¶ added in v0.8.0
type DGateModuleClient ¶ added in v0.8.0
type DGateNamespaceClient ¶ added in v0.8.0
type DGateRouteClient ¶ added in v0.8.0
type DGateSecretClient ¶ added in v0.8.0
type DGateServiceClient ¶ added in v0.8.0
type DocumentPayload ¶ added in v0.8.0
type ListResponseWrapper ¶
type NamePayload ¶ added in v0.8.0
type NamePayload struct {
Name string `json:"name"`
}
type NamespacePayload ¶ added in v0.8.0
type NamespacePayload struct {
Namespace string `json:"namespace"`
}
type Options ¶
type Options func(DGateClient)
func WithBasicAuth ¶
func WithFollowRedirect ¶ added in v0.8.0
func WithUserAgent ¶
func WithVerboseLogging ¶ added in v0.8.0
type ResponseWrapper ¶
Click to show internal directories.
Click to hide internal directories.