Documentation ¶
Index ¶
- func SetCommonParams(h HasCommonParamSetters, client *http.Client, ctx context.Context, ...)
- type Client
- func (c *Client) DeleteDoc(namespace, collection, id string) (bool, error)
- func (c *Client) GetDoc(namespace, collection, id string) (interface{}, error)
- func (c *Client) PatchDoc(namespace, collection, id string, document interface{}) (string, error)
- func (c *Client) PostDoc(namespace, collection string, document interface{}) (string, error)
- func (c *Client) PutDoc(namespace, collection, id string, document interface{}) (string, error)
- func (c *Client) SearchDoc(namespace, collection string, search *string, raw *bool) (interface{}, error)
- type CredsProvider
- type EnvVarCredsProvider
- type HasCommonParamSetters
- type StargateToken
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetCommonParams ¶
Types ¶
type Client ¶
type Client struct { Ctx context.Context Token StargateToken StayAuthenticated bool // contains filtered or unexported fields }
type CredsProvider ¶
type EnvVarCredsProvider ¶
type HasCommonParamSetters ¶
type StargateToken ¶
type StargateToken struct {
AuthToken string `json:"authToken"`
}
func Authenticate ¶
func Authenticate(creds CredsProvider, authURL string) (*StargateToken, error)
Click to show internal directories.
Click to hide internal directories.