Documentation ¶
Index ¶
- type AccessPolicy
- type Client
- func (c Client) Create(ctx context.Context, tableName string) (result CreateTableResponse, err error)
- func (c Client) Delete(ctx context.Context, tableName string) (result DeleteTableResponse, err error)
- func (c Client) Exists(ctx context.Context, tableName string) (result TableExistsResponse, err error)
- func (c Client) GetACL(ctx context.Context, tableName string) (result GetACLResponse, err error)
- func (c Client) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, tableName string) string
- func (c Client) Query(ctx context.Context, input QueryInput) (result GetResponse, err error)
- func (c Client) SetACL(ctx context.Context, tableName string, acls []SignedIdentifier) (result SetACLResponse, err error)
- type CreateTableResponse
- type DeleteTableResponse
- type GetACLResponse
- type GetResponse
- type GetResultItem
- type MetaDataLevel
- type QueryInput
- type SetACLResponse
- type SignedIdentifier
- type StorageTable
- type TableExistsResponse
- type TableId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessPolicy ¶
type Client ¶
Client is the base client for Table Storage Shares.
func NewWithBaseUri ¶
func (Client) Create ¶
func (c Client) Create(ctx context.Context, tableName string) (result CreateTableResponse, err error)
Create creates a new table in the storage account.
func (Client) Delete ¶
func (c Client) Delete(ctx context.Context, tableName string) (result DeleteTableResponse, err error)
Delete deletes the specified table and any data it contains.
func (Client) Exists ¶
func (c Client) Exists(ctx context.Context, tableName string) (result TableExistsResponse, err error)
Exists checks that the specified table exists
func (Client) GetResourceManagerResourceID ¶
func (c Client) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, tableName string) string
GetResourceManagerResourceID 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 (c Client) Query(ctx context.Context, input QueryInput) (result GetResponse, err error)
Query returns a list of tables under the specified account.
func (Client) SetACL ¶
func (c Client) SetACL(ctx context.Context, tableName string, acls []SignedIdentifier) (result SetACLResponse, err error)
SetACL sets the specified Access Control List for the specified Table
type CreateTableResponse ¶
type DeleteTableResponse ¶
type GetACLResponse ¶
type GetACLResponse struct { HttpResponse *http.Response SignedIdentifiers []SignedIdentifier `xml:"SignedIdentifier"` }
type GetResponse ¶
type GetResponse struct { HttpResponse *http.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 QueryInput ¶
type QueryInput struct {
MetaDataLevel MetaDataLevel
}
type SetACLResponse ¶
type SignedIdentifier ¶
type SignedIdentifier struct { Id string `xml:"Id"` AccessPolicy AccessPolicy `xml:"AccessPolicy"` }
type StorageTable ¶
type StorageTable interface { Delete(ctx context.Context, tableName string) (resp DeleteTableResponse, err error) Exists(ctx context.Context, tableName string) (resp TableExistsResponse, err error) GetACL(ctx context.Context, tableName string) (resp GetACLResponse, err error) Create(ctx context.Context, tableName string) (resp CreateTableResponse, err error) GetResourceManagerResourceID(subscriptionID, resourceGroup, accountName, tableName string) string Query(ctx context.Context, input QueryInput) (resp GetResponse, err error) SetACL(ctx context.Context, tableName string, acls []SignedIdentifier) (resp SetACLResponse, err error) }
type TableExistsResponse ¶
type TableId ¶ added in v0.22.0
type TableId struct { // AccountId specifies the ID of the Storage Account where this Table exists. AccountId accounts.AccountId // TableName specifies the name of this Table. TableName string }
func NewTableID ¶ added in v0.22.0
func ParseTableID ¶ added in v0.22.0
ParseTableID parses `input` into a Table ID using a known `domainSuffix`
Click to show internal directories.
Click to hide internal directories.