provision

package
v5.0.99 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewProvisionCommand

func NewProvisionCommand() *cobra.Command

NewProvisionCommand is the 'beta provision' commmand

Types

type Config

type Config struct {
	License struct {
		FileRef FileRef `yaml:"fileRef"`
	} `yaml:"license"`
	Connections map[string]interface{} `yaml:"connections"`
}

Config reprents the high level structure of expected file for 'provision' cmd

type FileRef

type FileRef struct {
	Inline   string `yaml:"inline"`
	URL      string `yaml:"URL"`
	Filepath string `yaml:"filepath"`
}

FileRef is structure that specifies how to retrieve the file to be uploaded

type FileUploadResp

type FileUploadResp struct {
	ID         string `json:"id"`
	Filename   string `json:"filename"`
	Size       int    `json:"size"`
	UploadedBy string `json:"uploadedBy"`
}

FileUploadResp corresponds to the response from '/api/v1/files' endpoint used to capture the 'id'.

type HTTPDoer

type HTTPDoer interface {
	Do(method, path, contentType string, send []byte, options ...api.RequestOption) (*http.Response, error)
	ReadResponseBody(resp *http.Response) ([]byte, error)
}

HTTPDoer is the interface that both api.client and mock client use

Jump to

Keyboard shortcuts

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