Documentation
¶
Overview ¶
Package catalog consists of catalog functions.
Copyright 2021 Michael Bungenstock ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- func CreateDataset(ctx context.Context, p *api.AuthenticationConfig, obj interface{}) (*http.Response, error)
- func CreateProfileUnionDataset(ctx context.Context, p *api.AuthenticationConfig, name, format string) (*http.Response, error)
- func GetBatches(ctx context.Context, p *api.AuthenticationConfig, o *BatchesOptions) (*http.Response, error)
- func GetDatasets(ctx context.Context, p *api.AuthenticationConfig, o *BatchesOptions) (*http.Response, error)
- type BatchesOptions
- type DataSetRequest
- type FileDescription
- type SchemaRef
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDataset ¶
func CreateDataset(ctx context.Context, p *api.AuthenticationConfig, obj interface{}) (*http.Response, error)
Create creates a new object
func GetBatches ¶
func GetBatches(ctx context.Context, p *api.AuthenticationConfig, o *BatchesOptions) (*http.Response, error)
GetBatches returns a list of batches
func GetDatasets ¶
func GetDatasets(ctx context.Context, p *api.AuthenticationConfig, o *BatchesOptions) (*http.Response, error)
GetDatasets returns a list of batches
Types ¶
type BatchesOptions ¶
type BatchesOptions struct {
Limit string
CreatedAfter string
CreatedBefore string
Dataset string
EndAfter string
EndBefore string
Name string
OrderBy string
StartAfter string
StartBefore string
}
BatchesOptions contains all options for batch requests
func (*BatchesOptions) ToURLPar ¶
func (b *BatchesOptions) ToURLPar() string
ToURLPar converts the options to a URL parameter query
type DataSetRequest ¶
type DataSetRequest struct {
ConncectorID string `json:"connectorId,omitempty" yaml:"connectorId,omitempty"`
ConncectoionID string `json:"connectionId,omitempty" yaml:"connectionId,omitempty"`
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Namespace string `json:"namespace,omitempty" yaml:"namespace,omitempty"`
FileDescription *FileDescription `json:"fileDescription,omitempty" yaml:"fileDescription,omitempty"`
SchemaRef *SchemaRef `json:"schemaRef,omitempty" yaml:"schemaRef,omitempty"`
}