Documentation ¶
Index ¶
- Constants
- func UserAgent() string
- type AccessPolicy
- type Client
- func (client Client) Create(ctx context.Context, accountName, tableName string) (result autorest.Response, err error)
- func (client Client) CreatePreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
- func (client Client) CreateResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) CreateSender(req *http.Request) (*http.Response, error)
- func (client Client) Delete(ctx context.Context, accountName, tableName string) (result autorest.Response, err error)
- func (client Client) DeletePreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
- func (client Client) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) DeleteSender(req *http.Request) (*http.Response, error)
- func (client Client) Exists(ctx context.Context, accountName, tableName string) (result autorest.Response, err error)
- func (client Client) ExistsPreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
- func (client Client) ExistsResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) ExistsSender(req *http.Request) (*http.Response, error)
- func (client Client) GetACL(ctx context.Context, accountName, tableName string) (result GetACLResult, err error)
- func (client Client) GetACLPreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
- func (client Client) GetACLResponder(resp *http.Response) (result GetACLResult, err error)
- func (client Client) GetACLSender(req *http.Request) (*http.Response, error)
- func (client Client) GetResourceID(accountName, tableName string) string
- func (client Client) Query(ctx context.Context, accountName string, metaDataLevel MetaDataLevel) (result GetResult, err error)
- func (client Client) QueryPreparer(ctx context.Context, accountName string, metaDataLevel MetaDataLevel) (*http.Request, error)
- func (client Client) QueryResponder(resp *http.Response) (result GetResult, err error)
- func (client Client) QuerySender(req *http.Request) (*http.Response, error)
- func (client Client) SetACL(ctx context.Context, accountName, tableName string, acls []SignedIdentifier) (result autorest.Response, err error)
- func (client Client) SetACLPreparer(ctx context.Context, accountName, tableName string, acls []SignedIdentifier) (*http.Request, error)
- func (client Client) SetACLResponder(resp *http.Response) (result autorest.Response, err error)
- func (client Client) SetACLSender(req *http.Request) (*http.Response, error)
- type GetACLResult
- type GetResult
- type GetResultItem
- type MetaDataLevel
- type ResourceID
- type SignedIdentifier
Constants ¶
const APIVersion = "2017-07-29"
APIVersion is the version of the API used for all Storage API Operations
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AccessPolicy ¶
type Client ¶
Client is the base client for Table Storage Shares.
func NewWithEnvironment ¶
func NewWithEnvironment(environment azure.Environment) Client
NewWithEnvironment creates an instance of the Client client.
func (Client) Create ¶
func (client Client) Create(ctx context.Context, accountName, tableName string) (result autorest.Response, err error)
Create creates a new table in the storage account.
func (Client) CreatePreparer ¶
func (client Client) CreatePreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
CreatePreparer prepares the Create request.
func (Client) CreateResponder ¶
CreateResponder handles the response to the Create request. The method always closes the http.Response Body.
func (Client) CreateSender ¶
CreateSender sends the Create request. The method will close the http.Response Body if it receives an error.
func (Client) Delete ¶
func (client Client) Delete(ctx context.Context, accountName, tableName string) (result autorest.Response, err error)
Delete deletes the specified table and any data it contains.
func (Client) DeletePreparer ¶
func (client Client) DeletePreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (Client) DeleteResponder ¶
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (Client) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (Client) Exists ¶
func (client Client) Exists(ctx context.Context, accountName, tableName string) (result autorest.Response, err error)
Exists checks that the specified table exists
func (Client) ExistsPreparer ¶
func (client Client) ExistsPreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
ExistsPreparer prepares the Exists request.
func (Client) ExistsResponder ¶
ExistsResponder handles the response to the Exists request. The method always closes the http.Response Body.
func (Client) ExistsSender ¶
ExistsSender sends the Exists request. The method will close the http.Response Body if it receives an error.
func (Client) GetACL ¶
func (client Client) GetACL(ctx context.Context, accountName, tableName string) (result GetACLResult, err error)
GetACL returns the Access Control List for the specified Table
func (Client) GetACLPreparer ¶
func (client Client) GetACLPreparer(ctx context.Context, accountName, tableName string) (*http.Request, error)
GetACLPreparer prepares the GetACL request.
func (Client) GetACLResponder ¶
func (client Client) GetACLResponder(resp *http.Response) (result GetACLResult, err error)
GetACLResponder handles the response to the GetACL request. The method always closes the http.Response Body.
func (Client) GetACLSender ¶
GetACLSender sends the GetACL request. The method will close the http.Response Body if it receives an error.
func (Client) GetResourceID ¶
GetResourceID returns the Resource ID for the given Table This can be useful when, for example, you're using this as a unique identifier
func (Client) Query ¶
func (client Client) Query(ctx context.Context, accountName string, metaDataLevel MetaDataLevel) (result GetResult, err error)
Query returns a list of tables under the specified account.
func (Client) QueryPreparer ¶
func (client Client) QueryPreparer(ctx context.Context, accountName string, metaDataLevel MetaDataLevel) (*http.Request, error)
QueryPreparer prepares the Query request.
func (Client) QueryResponder ¶
QueryResponder handles the response to the Query request. The method always closes the http.Response Body.
func (Client) QuerySender ¶
QuerySender sends the Query request. The method will close the http.Response Body if it receives an error.
func (Client) SetACL ¶
func (client Client) SetACL(ctx context.Context, accountName, tableName string, acls []SignedIdentifier) (result autorest.Response, err error)
SetACL sets the specified Access Control List for the specified Table
func (Client) SetACLPreparer ¶
func (client Client) SetACLPreparer(ctx context.Context, accountName, tableName string, acls []SignedIdentifier) (*http.Request, error)
SetACLPreparer prepares the SetACL request.
func (Client) SetACLResponder ¶
SetACLResponder handles the response to the SetACL request. The method always closes the http.Response Body.
type GetACLResult ¶
type GetACLResult struct { autorest.Response SignedIdentifiers []SignedIdentifier `xml:"SignedIdentifier"` }
type GetResult ¶
type GetResult struct { autorest.Response MetaData string `json:"odata.metadata,omitempty"` Tables []GetResultItem `json:"value"` }
type GetResultItem ¶
type MetaDataLevel ¶
type MetaDataLevel string
var ( NoMetaData MetaDataLevel = "nometadata" MinimalMetaData MetaDataLevel = "minimalmetadata" FullMetaData MetaDataLevel = "fullmetadata" )
type ResourceID ¶
func ParseResourceID ¶ added in v0.2.0
func ParseResourceID(id string) (*ResourceID, error)
ParseResourceID parses the Resource ID and returns an object which can be used to interact with the Table within the specified Storage Account
type SignedIdentifier ¶
type SignedIdentifier struct { Id string `xml:"Id"` AccessPolicy AccessPolicy `xml:"AccessPolicy"` }