ngcloud

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2018 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNgCloudStorageDriverURLInvalid = errors.New("ngcloud storage driver apiURL invalid.")
)

Functions

func New

func New(parameters types.Parameters) (driver.StorageDriver, error)

New is exported

Types

type Engine

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

Engine is exported

func NewEngine

func NewEngine(rawAPIURL string, readPageSize int) *Engine

NewEngine is exported

func (*Engine) SetConfigParameters

func (engine *Engine) SetConfigParameters(rawAPIURL string, readPageSize int)

type JobsResponse

type JobsResponse struct {
	PageData
	Jobs []*models.Job
}

JobsResponse is exported

type LocationsNameResponse

type LocationsNameResponse struct {
	PageData
	Names []string
}

LocationsNameResponse is exported

type NgCloudStorageDriver

type NgCloudStorageDriver struct {
	sync.RWMutex
	driver.StorageDriver
	// contains filtered or unexported fields
}

NgCloudStorageDriver is exported

func (*NgCloudStorageDriver) Close

func (driver *NgCloudStorageDriver) Close()

Close is exported

func (*NgCloudStorageDriver) GetGroupJobs

func (driver *NgCloudStorageDriver) GetGroupJobs(groupid string) []*models.Job

GetGroupJobs is exported

func (*NgCloudStorageDriver) GetJob

func (driver *NgCloudStorageDriver) GetJob(jobid string) *models.Job

GetJob is exported

func (*NgCloudStorageDriver) GetJobs

func (driver *NgCloudStorageDriver) GetJobs() []*models.Job

GetJobs is exported

func (*NgCloudStorageDriver) GetLocation

func (driver *NgCloudStorageDriver) GetLocation(location string) *models.WorkLocation

GetLocation is exported

func (*NgCloudStorageDriver) GetLocationJobs

func (driver *NgCloudStorageDriver) GetLocationJobs(location string) []*models.Job

GetLocationJobs is exported

func (*NgCloudStorageDriver) GetLocationSimpleJobs

func (driver *NgCloudStorageDriver) GetLocationSimpleJobs(location string) []*models.SimpleJob

GetLocationSimpleJobs is exported

func (*NgCloudStorageDriver) GetLocationsName

func (driver *NgCloudStorageDriver) GetLocationsName() []string

GetLocationsName is exported

func (*NgCloudStorageDriver) GetSimpleJob

func (driver *NgCloudStorageDriver) GetSimpleJob(jobid string) *models.SimpleJob

GetSimpleJob is exported

func (*NgCloudStorageDriver) GetStateJobs

func (driver *NgCloudStorageDriver) GetStateJobs(state int) []*models.Job

GetStateJobs is exported

func (*NgCloudStorageDriver) Open

func (driver *NgCloudStorageDriver) Open() error

Open is exported

func (*NgCloudStorageDriver) SetConfigParameters

func (driver *NgCloudStorageDriver) SetConfigParameters(parameters types.Parameters)

SetConfigParameters is exported

func (*NgCloudStorageDriver) SetJob

func (driver *NgCloudStorageDriver) SetJob(job *models.Job)

SetJob is exported

func (*NgCloudStorageDriver) SetJobLog

func (driver *NgCloudStorageDriver) SetJobLog(joblog *models.JobLog)

SetJobLog is exported

type PageData

type PageData struct {
	PageSize  int `json:"pageSize"`
	PageIndex int `json:"pageIndex"`
	TotalRows int `json:"total_rows"`
}

PageData is exported

type SimpleJobsResponse

type SimpleJobsResponse struct {
	PageData
	Jobs []*models.SimpleJob
}

SimpleJobsResponse is exported

Jump to

Keyboard shortcuts

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