workspace

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultAmlOauthScope string = "https://management.azure.com/.default"
	NConcurrentWorkers          = 8
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ClientId       string
	ClientSecret   string
	TenantId       string
	SubscriptionId string
}

type Dataset

type Dataset struct {
	Id             string
	Name           string
	Description    string
	DatastoreId    string
	Version        int
	FilePaths      []DatasetPath
	DirectoryPaths []DatasetPath
	SystemData     *SystemData
}

type DatasetConverter

type DatasetConverter struct {
	// contains filtered or unexported fields
}

type DatasetPath

type DatasetPath interface {
	fmt.Stringer
}

type DatasetPathsSchema

type DatasetPathsSchema struct {
	FilePath      string `json:"file,omitempty"`
	DirectoryPath string `json:"folder,omitempty"`
}

type Datastore

type Datastore struct {
	Id          string
	Name        string
	IsDefault   bool
	Description string

	StorageType          string
	StorageAccountName   string
	StorageContainerName string

	SystemData *SystemData
	Auth       *DatastoreAuth
}

type DatastoreAuth

type DatastoreAuth struct {
	CredentialsType string
	ClientId        string
	TenantId        string
	ClientSecret    string
	AccountKey      string
	SqlUserName     string
	SqlUserPassword string
}

type DatastorePath

type DatastorePath struct {
	DatastoreName string
	Path          string
}

func NewDatastorePath

func NewDatastorePath(path string) (*DatastorePath, error)

func (DatastorePath) String

func (d DatastorePath) String() string

type HttpClient

type HttpClient struct {
	// contains filtered or unexported fields
}

type HttpClientAPI

type HttpClientAPI interface {
	// contains filtered or unexported methods
}

type HttpClientBuilder

type HttpClientBuilder struct {
	// contains filtered or unexported fields
}

type HttpClientBuilderAPI

type HttpClientBuilderAPI interface {
	// contains filtered or unexported methods
}

type HttpResponseError

type HttpResponseError struct {
	// contains filtered or unexported fields
}

func (HttpResponseError) Error

func (e HttpResponseError) Error() string

type InvalidArgumentError

type InvalidArgumentError struct {
	// contains filtered or unexported fields
}

func (InvalidArgumentError) Error

func (e InvalidArgumentError) Error() string

type MockedHttpClient

type MockedHttpClient struct {
	mock.Mock
}

type MockedHttpClientBuilder

type MockedHttpClientBuilder struct {
	// contains filtered or unexported fields
}

type ResourceNotFoundError

type ResourceNotFoundError struct {
	// contains filtered or unexported fields
}

func (ResourceNotFoundError) Error

func (e ResourceNotFoundError) Error() string

type SchemaWrapper

type SchemaWrapper struct {
	Properties interface{} `json:"properties"`
}

type SystemData

type SystemData struct {
	CreationDate     time.Time
	CreationUser     string
	CreationUserType string

	LastModifiedDate     time.Time
	LastModifiedUser     string
	LastModifiedUserType string
}

type Workspace

type Workspace struct {
	// contains filtered or unexported fields
}

func New

func New(config Config, debug bool) (*Workspace, error)

func (*Workspace) CreateOrUpdateDataset

func (w *Workspace) CreateOrUpdateDataset(resourceGroup, workspace string, dataset *Dataset) (*Dataset, error)

func (*Workspace) CreateOrUpdateDatastore

func (w *Workspace) CreateOrUpdateDatastore(resourceGroup, workspace string, datastore *Datastore) (*Datastore, error)

func (*Workspace) DeleteDataset

func (w *Workspace) DeleteDataset(resourceGroup, workspace, datasetName string) error

func (*Workspace) DeleteDatasetVersion

func (w *Workspace) DeleteDatasetVersion(resourceGroup, workspace, datasetName string, version int) error

func (*Workspace) DeleteDatastore

func (w *Workspace) DeleteDatastore(resourceGroup, workspace, datastoreName string) error

func (*Workspace) GetDataset

func (w *Workspace) GetDataset(resourceGroup, workspace, name string, version int) (*Dataset, error)

func (*Workspace) GetDatasetNextVersion

func (w *Workspace) GetDatasetNextVersion(resourceGroup, workspace, name string) (int, error)

func (*Workspace) GetDatasetVersions

func (w *Workspace) GetDatasetVersions(resourceGroup, workspace, datasetName string) ([]Dataset, error)

func (*Workspace) GetDatasets

func (w *Workspace) GetDatasets(resourceGroup, workspace string) ([]Dataset, error)

func (*Workspace) GetDatastore

func (w *Workspace) GetDatastore(resourceGroup, workspace, datastoreName string) (*Datastore, error)

func (*Workspace) GetDatastores

func (w *Workspace) GetDatastores(resourceGroup, workspace string) ([]Datastore, error)

type WriteDatasetSchema

type WriteDatasetSchema struct {
	Description string               `json:"description,omitempty"`
	Paths       []DatasetPathsSchema `json:"paths"`
}

type WriteDatastoreCredentialsSchema

type WriteDatastoreCredentialsSchema struct {
	CredentialsType string                       `json:"credentialsType"`
	Secrets         *WriteDatastoreSecretsSchema `json:"secrets"`
	ClientId        string                       `json:"clientId,omitempty"`
	TenantId        string                       `json:"tenantId,omitempty"`
	SqlUserName     string                       `json:"userId,omitempty"`
}

type WriteDatastoreSchema

type WriteDatastoreSchema struct {
	ContentsType         string                           `json:"contentsType"`
	StorageAccountName   string                           `json:"accountName,omitempty"`
	StorageContainerName string                           `json:"containerName,omitempty"`
	Credentials          *WriteDatastoreCredentialsSchema `json:"credentials,omitempty"`
	Endpoint             string                           `json:"endpoint"`
	Protocol             string                           `json:"protocol"`
}

type WriteDatastoreSchemaProperties

type WriteDatastoreSchemaProperties struct {
	Contents    WriteDatastoreSchema `json:"contents"`
	IsDefault   bool                 `json:"isDefault"`
	Description string               `json:"description"`
}

type WriteDatastoreSecretsSchema

type WriteDatastoreSecretsSchema struct {
	SecretsType     string `json:"secretsType"`
	AccountKey      string `json:"key,omitempty"`
	ClientSecret    string `json:"clientSecret,omitempty"`
	SqlUserPassword string `json:"password,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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