Documentation
¶
Overview ¶
Package resources contains objects that are used to gather information about Kusto resources that are used during various ingestion methods.
Index ¶
- func InitBackoff() backoff.BackOff
- type FakeMgmt
- type FsMock
- func (f FsMock) Blob(ctx context.Context, from string, fileSize int64, props properties.All) error
- func (f FsMock) Close() error
- func (f FsMock) Local(ctx context.Context, from string, props properties.All) error
- func (f FsMock) Reader(ctx context.Context, reader io.Reader, props properties.All) (string, error)
- type Ingestion
- type Manager
- type URI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitBackoff ¶ added in v0.7.0
func InitBackoff() backoff.BackOff
Types ¶
type FakeMgmt ¶ added in v0.6.0
func NewFakeMgmt ¶ added in v0.6.0
func SuccessfulFakeResources ¶ added in v0.6.0
func SuccessfulFakeResources() *FakeMgmt
func (*FakeMgmt) SetDBEquals ¶ added in v0.6.0
func (*FakeMgmt) SetMgmtErr ¶ added in v0.6.0
func (*FakeMgmt) SetQueryEquals ¶ added in v0.6.0
type FsMock ¶ added in v0.6.0
type FsMock struct { OnLocal func(ctx context.Context, from string, props properties.All) error OnReader func(ctx context.Context, reader io.Reader, props properties.All) (string, error) OnBlob func(ctx context.Context, from string, fileSize int64, props properties.All) error }
type Ingestion ¶
type Ingestion struct { // Queues contains URIs for Queue resources. Queues []*URI // Containers has URIs for blob resources. Containers []*URI // Tables contains URIs for table resources. Tables []*URI }
Ingestion holds information about Ingestion resources.
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages Kusto resources.
func (*Manager) AuthContext ¶
AuthContext returns a string representing the authorization context. This auth token is a temporary token that can be used to write a message via ingestion. This is different than the ADAL token.
type URI ¶
type URI struct {
// contains filtered or unexported fields
}
URI represents a resource URI for an ingestion command.
func (*URI) ObjectName ¶
ObjectName returns the object name of the resource, i.e container name.
func (*URI) ObjectType ¶
ObjectType returns the type of object that will be ingested: queue, blob or table.
func (*URI) SAS ¶
SAS is shared access signature used to access Azure storage. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview