api_key

package
v3.3.359 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 4 Imported by: 2 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package api_key is the Files.com API client package for the files_sdk.ApiKey model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

Create calls Client.Create using the default configuration.

func Delete

Delete calls Client.Delete using the default configuration.

func DeleteCurrent

func DeleteCurrent(opts ...files_sdk.RequestResponseOption) (err error)

DeleteCurrent calls Client.DeleteCurrent using the default configuration.

func Find

Find calls Client.Find using the default configuration.

func FindCurrent

func FindCurrent(opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

FindCurrent calls Client.FindCurrent using the default configuration.

func Update

Update calls Client.Update using the default configuration.

func UpdateCurrent

func UpdateCurrent(params files_sdk.ApiKeyUpdateCurrentParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

UpdateCurrent calls Client.UpdateCurrent using the default configuration.

func UpdateCurrentWithMap

func UpdateCurrentWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

UpdateCurrentWithMap calls Client.UpdateCurrentWithMap using the default configuration.

func UpdateWithMap

func UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

UpdateWithMap calls Client.UpdateWithMap using the default configuration.

Types

type Client

type Client struct {
	files_sdk.Config
}

Client calls the ApiKey API using its embedded Config.

func (*Client) Create

func (c *Client) Create(params files_sdk.ApiKeyCreateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

Create calls POST /api_keys.

func (*Client) Delete

func (c *Client) Delete(params files_sdk.ApiKeyDeleteParams, opts ...files_sdk.RequestResponseOption) (err error)

Delete calls DELETE /api_keys/{id}.

func (*Client) DeleteCurrent

func (c *Client) DeleteCurrent(opts ...files_sdk.RequestResponseOption) (err error)

DeleteCurrent calls DELETE /api_key.

API operation: Delete current API key. (Requires current API connection to be using an API key.).

func (*Client) Find

func (c *Client) Find(params files_sdk.ApiKeyFindParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

Find calls GET /api_keys/{id}.

func (*Client) FindCurrent

func (c *Client) FindCurrent(opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

FindCurrent calls GET /api_key.

API operation: Show information about current API key. (Requires current API connection to be using an API key.).

func (*Client) List

List returns an iterator for GET /api_keys. Pages are requested as iteration reaches them: range over Iter.All, or call Next and then check Err.

func (*Client) Update

func (c *Client) Update(params files_sdk.ApiKeyUpdateParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

Update calls PATCH /api_keys/{id}.

func (*Client) UpdateCurrent

func (c *Client) UpdateCurrent(params files_sdk.ApiKeyUpdateCurrentParams, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

UpdateCurrent calls PATCH /api_key.

API operation: Update current API key. (Requires current API connection to be using an API key.).

func (*Client) UpdateCurrentWithMap

func (c *Client) UpdateCurrentWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

UpdateCurrentWithMap calls PATCH /api_key using API parameter names as map keys. Include any path parameters in the map. Unlike optional struct fields, explicit zero values in the map are included in the request.

func (*Client) UpdateWithMap

func (c *Client) UpdateWithMap(params map[string]interface{}, opts ...files_sdk.RequestResponseOption) (apiKey files_sdk.ApiKey, err error)

UpdateWithMap calls PATCH /api_keys/{id} using API parameter names as map keys. Include any path parameters in the map. Unlike optional struct fields, explicit zero values in the map are included in the request.

type Iter

type Iter struct {
	*files_sdk.Iter
	*Client
}

Iter traverses a paginated API response. Range over All to get each resource with a nil error, followed by the error that stopped the listing, if any. Alternatively, call Next before reading the current resource, then check Err after Next returns false.

func List

List returns a listing iterator using the default configuration. See Client.List for the operation and paging behavior.

func (*Iter) All added in v3.3.301

func (i *Iter) All() iter.Seq2[files_sdk.ApiKey, error]

All returns an iterator over the listing's remaining resources, each with a nil error, followed by the error that stops the listing, if any. Pages are requested as the loop reaches them. See files_sdk.IterAll.

func (*Iter) ApiKey

func (i *Iter) ApiKey() files_sdk.ApiKey

ApiKey returns the current resource. Call it only after Next returns true.

func (*Iter) LoadResource

func (i *Iter) LoadResource(identifier interface{}, opts ...files_sdk.RequestResponseOption) (interface{}, error)

LoadResource fetches a resource by its ID. identifier must have type int64.

func (*Iter) Reload

func (i *Iter) Reload(opts ...files_sdk.RequestResponseOption) files_sdk.IterI

Reload returns a new iterator for the same listing, starting at the first page. See files_sdk.Iter.Reload for parameter and request-option handling.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL