Documentation ¶
Overview ¶
Package resources contains objects that are used to gather information about Kusto resources that are used during various ingestion methods.
Index ¶
- 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
- func (m *Manager) AuthContext(ctx context.Context) (string, error)
- func (m *Manager) Close()
- func (m *Manager) GetRankedStorageContainers() ([]*URI, error)
- func (m *Manager) GetRankedStorageQueues() ([]*URI, error)
- func (m *Manager) GetTables() ([]*URI, error)
- func (m *Manager) ReportStorageResourceResult(accountName string, success bool)
- type RankedStorageAccount
- type RankedStorageAccountSet
- type StorageAccountStats
- type URI
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.
func (*Manager) Close ¶
func (m *Manager) Close()
Close closes the manager. This stops any token refreshes.
func (*Manager) GetRankedStorageContainers ¶ added in v0.15.1
Get ranked containers
func (*Manager) GetRankedStorageQueues ¶ added in v0.15.1
get ranked queues
func (*Manager) ReportStorageResourceResult ¶ added in v0.15.1
Report storage account resource usage results.
type RankedStorageAccount ¶ added in v0.15.1
type RankedStorageAccount struct {
// contains filtered or unexported fields
}
type RankedStorageAccountSet ¶ added in v0.15.1
type RankedStorageAccountSet struct {
// contains filtered or unexported fields
}
type StorageAccountStats ¶ added in v0.15.1
type StorageAccountStats struct {
// contains filtered or unexported fields
}
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) SAS ¶
SAS is shared access signature used to access Azure storage. https://docs.microsoft.com/en-us/azure/storage/common/storage-sas-overview