Documentation
¶
Index ¶
- type Option
- type PantryClient
- func (p *PantryClient) DeleteBasket(basketName string) error
- func (p *PantryClient) GetBaseURL() string
- func (p *PantryClient) GetContents(basketName string) (map[string]interface{}, error)
- func (p *PantryClient) GetPantry() (*types.GetPantryResponse, error)
- func (p *PantryClient) GetPantryID() string
- func (p *PantryClient) SetPantryID(id string)
- func (p *PantryClient) UpdateContents(basketName string, data interface{}) error
- func (p *PantryClient) UpdatePantryDetails(input *types.UpdatePantryDetailsInput) (*types.GetPantryResponse, error)
- func (p *PantryClient) UpsertBasket(basketName string, data interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PantryClient ¶
type PantryClient struct {
BaseURL string
PantryID string
// contains filtered or unexported fields
}
func NewPantry ¶
func NewPantry(opts ...Option) *PantryClient
func (*PantryClient) DeleteBasket ¶
func (p *PantryClient) DeleteBasket(basketName string) error
func (*PantryClient) GetBaseURL ¶
func (p *PantryClient) GetBaseURL() string
func (*PantryClient) GetContents ¶
func (p *PantryClient) GetContents(basketName string) (map[string]interface{}, error)
func (*PantryClient) GetPantry ¶
func (p *PantryClient) GetPantry() (*types.GetPantryResponse, error)
func (*PantryClient) GetPantryID ¶
func (p *PantryClient) GetPantryID() string
func (*PantryClient) SetPantryID ¶
func (p *PantryClient) SetPantryID(id string)
func (*PantryClient) UpdateContents ¶
func (p *PantryClient) UpdateContents(basketName string, data interface{}) error
func (*PantryClient) UpdatePantryDetails ¶
func (p *PantryClient) UpdatePantryDetails(input *types.UpdatePantryDetailsInput) (*types.GetPantryResponse, error)
func (*PantryClient) UpsertBasket ¶
func (p *PantryClient) UpsertBasket(basketName string, data interface{}) error
Click to show internal directories.
Click to hide internal directories.