backend

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountService

type AccountService interface {
	Filter(string) AccountService
	Mask(string) AccountService
	ID(int) AccountService
	Limit(int) AccountService
	Offset(int) AccountService

	GetBlockDeviceTemplateGroups() ([]datatypes.Virtual_Guest_Block_Device_Template_Group, error)
	GetCurrentUser() (datatypes.User_Customer, error)
	GetHardware() ([]datatypes.Hardware, error)
	GetObject() (datatypes.Account, error)
	GetOrders() ([]datatypes.Billing_Order, error)
	GetSubnets() ([]datatypes.Network_Subnet, error)
	GetNetworkStorage() (resp []datatypes.Network_Storage, err error)
}

AccountService is a wrapping interface for the softlayer-go API's AccountService

type AccountServiceSL

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

AccountServiceSL is a softlayer implementation of the AccountService interface. All functions pass directly to the equivalent SL function

func (*AccountServiceSL) Filter

func (as *AccountServiceSL) Filter(filter string) AccountService

Filter pass-through for AccountService.Filter

func (*AccountServiceSL) GetBlockDeviceTemplateGroups

func (as *AccountServiceSL) GetBlockDeviceTemplateGroups() ([]datatypes.Virtual_Guest_Block_Device_Template_Group, error)

GetBlockDeviceTemplateGroups pass-through for AccountService.GetBlockDeviceTemplateGroups

func (*AccountServiceSL) GetCurrentUser

func (as *AccountServiceSL) GetCurrentUser() (datatypes.User_Customer, error)

GetCurrentUser pass-through for AccountService.GetCurrentUser

func (*AccountServiceSL) GetHardware

func (as *AccountServiceSL) GetHardware() ([]datatypes.Hardware, error)

GetHardware pass-through for AccountService.GetHardware

func (*AccountServiceSL) GetNetworkStorage

func (as *AccountServiceSL) GetNetworkStorage() (resp []datatypes.Network_Storage, err error)

func (*AccountServiceSL) GetObject

func (as *AccountServiceSL) GetObject() (datatypes.Account, error)

GetObject pass-through for AccountService.GetObject

func (*AccountServiceSL) GetOrders

func (as *AccountServiceSL) GetOrders() ([]datatypes.Billing_Order, error)

GetOrders pass-through for AccountService.GetOrders

func (*AccountServiceSL) GetSubnets

func (as *AccountServiceSL) GetSubnets() ([]datatypes.Network_Subnet, error)

GetSubnets pass-through for AccountService.GetSubnets

func (*AccountServiceSL) ID

func (as *AccountServiceSL) ID(id int) AccountService

ID pass-through for AccountService.Id

func (*AccountServiceSL) Limit

func (as *AccountServiceSL) Limit(limit int) AccountService

Limit pass-through for AccountService.Limit

func (*AccountServiceSL) Mask

func (as *AccountServiceSL) Mask(mask string) AccountService

Mask pass-through for AccountService.Mask

func (*AccountServiceSL) Offset

func (as *AccountServiceSL) Offset(offset int) AccountService

Offset pass-through for AccountService.Offset

type BillingItemService

type BillingItemService interface {
	Filter(filter string) BillingItemService
	Mask(string) BillingItemService
	ID(int) BillingItemService
	CancelItem(cancelImmediately *bool, cancelAssociatedBillingItems *bool, reason *string, customerNote *string) (resp bool, err error)
	CancelService() (resp bool, err error)
}

BillingItemService is a wrapping interface for the softlayer-go API's BillingItemService

type BillingItemServiceSL

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

BillingItemServiceSL is a softlayer implementation of the BillingItemService interface. All functions pass directly to the equivalent SL function

func (*BillingItemServiceSL) CancelItem

func (bis *BillingItemServiceSL) CancelItem(cancelImmediately *bool, cancelAssociatedBillingItems *bool, reason *string, customerNote *string) (bool, error)

CancelItem cancels the billing item

func (*BillingItemServiceSL) CancelService

func (bis *BillingItemServiceSL) CancelService() (resp bool, err error)

func (*BillingItemServiceSL) Filter

func (bis *BillingItemServiceSL) Filter(filter string) BillingItemService

Filter pass-through for BillingItemService.Filter

func (*BillingItemServiceSL) ID

ID pass-through for BillingItemService.ID

func (*BillingItemServiceSL) Mask

Mask pass-through for BillingItemService.Mask

type BillingOrderService

type BillingOrderService interface {
	Filter(filter string) BillingOrderService
	Mask(string) BillingOrderService
	ID(int) BillingOrderService
	GetObject() (datatypes.Billing_Order, error)
	GetAllObjects() ([]datatypes.Billing_Order, error)
}

BillingOrderService is a wrapping interface for the softlayer-go API's BillingOrderService

type BillingOrderServiceSL

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

BillingOrderServiceSL is a softlayer implementation of the BillingOrderService interface. All functions pass directly to the equivalent SL function

func (*BillingOrderServiceSL) Filter

func (bos *BillingOrderServiceSL) Filter(filter string) BillingOrderService

Filter pass-through for BillingOrderService.Filter

func (*BillingOrderServiceSL) GetAllObjects

func (bos *BillingOrderServiceSL) GetAllObjects() ([]datatypes.Billing_Order, error)

GetAllObjects returns all billing orders

func (*BillingOrderServiceSL) GetObject

func (bos *BillingOrderServiceSL) GetObject() (datatypes.Billing_Order, error)

GetObject returns the billing order

func (*BillingOrderServiceSL) ID

ID pass-through for BillingOrderService.ID

func (*BillingOrderServiceSL) Mask

Mask pass-through for BillingOrderService.Mask

type LocationService

type LocationService interface {
	Filter(string) LocationService
	Mask(string) LocationService
	ID(int) LocationService
	//func (r Location) GetDatacenters() (resp []datatypes.Location, err error) {
	GetDatacenters() (resp []datatypes.Location, err error)
}

LocationService is a wrapping interface for the softlayer-go API's LocationService

type LocationServiceSL

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

LocationServiceSL is a softlayer implementation of the LocationService interface. All functions pass directly to the equivalent SL function

func (*LocationServiceSL) Filter

func (ls *LocationServiceSL) Filter(filter string) LocationService

Filter pass-through for NetworkStorageIscsiService.Filter

func (*LocationServiceSL) GetDatacenters

func (ls *LocationServiceSL) GetDatacenters() (resp []datatypes.Location, err error)

func (*LocationServiceSL) ID

ID pass-through for NetworkStorageService.Id

func (*LocationServiceSL) Mask

func (ls *LocationServiceSL) Mask(mask string) LocationService

Mask pass-through for NetworkStorageIscsiService.Mask

type NetworkStorageIscsiService

type NetworkStorageIscsiService interface {
	Filter(string) NetworkStorageIscsiService
	Mask(string) NetworkStorageIscsiService
	ID(int) NetworkStorageIscsiService

	//func (r Network_Storage_Iscsi) CreateSnapshot(notes *string) (resp datatypes.Network_Storage, err error)
	CreateSnapshot(notes *string) (resp datatypes.Network_Storage, err error)
	//func (r Network_Storage_Iscsi) GetObject() (resp datatypes.Network_Storage_Iscsi, err error)
	GetObject() (resp datatypes.Network_Storage_Iscsi, err error)
	//func (r Network_Storage_Iscsi) GetSnapshots() (resp []datatypes.Network_Storage, err error) {
	GetSnapshots() (resp []datatypes.Network_Storage, err error)
	//func (r Network_Storage_Iscsi) GetSnapshotsForVolume() (resp []datatypes.Network_Storage, err error) {
	GetSnapshotsForVolume() (resp []datatypes.Network_Storage, err error)
}

NetworkStorageIscsiService is a wrapping interface for the softlayer-go API's NetworkStorageIscsiService

type NetworkStorageIscsiServiceSL

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

NetworkStorageServiceSL is a softlayer implementation of the NetworkStorageService interface. All functions pass directly to the equivalent SL function

func (*NetworkStorageIscsiServiceSL) CreateSnapshot

func (ns *NetworkStorageIscsiServiceSL) CreateSnapshot(notes *string) (datatypes.Network_Storage, error)

GetOrders pass-through for NetworkStorageIscsiService.CreateSnapshot

func (*NetworkStorageIscsiServiceSL) Filter

Filter pass-through for NetworkStorageIscsiService.Filter

func (*NetworkStorageIscsiServiceSL) GetObject

GetObject pass-through for NetworkStorageIscsiService.GetObject

func (*NetworkStorageIscsiServiceSL) GetSnapshots

func (ns *NetworkStorageIscsiServiceSL) GetSnapshots() (resp []datatypes.Network_Storage, err error)

func (*NetworkStorageIscsiServiceSL) GetSnapshotsForVolume

func (ns *NetworkStorageIscsiServiceSL) GetSnapshotsForVolume() (resp []datatypes.Network_Storage, err error)

func (*NetworkStorageIscsiServiceSL) ID

ID pass-through for NetworkStorageService.Id

func (*NetworkStorageIscsiServiceSL) Mask

Mask pass-through for NetworkStorageIscsiService.Mask

type NetworkStorageService

type NetworkStorageService interface {
	Filter(string) NetworkStorageService
	Mask(string) NetworkStorageService
	ID(int) NetworkStorageService

	GetObject() (resp datatypes.Network_Storage, err error)
	CreateSnapshot(notes *string) (resp datatypes.Network_Storage, err error)
	GetSnapshots() (resp []datatypes.Network_Storage, err error)
	DeleteObject() (resp bool, err error)
	EditObject(templateObject *datatypes.Network_Storage) (resp bool, err error)
	AllowAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (bool, error)
	AllowAccessFromIPAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (bool, error)
}

NetworkStorageService is a wrapping interface for the softlayer-go API's NetworkStorageService

type NetworkStorageServiceSL

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

NetworkStorageServiceSL is a softlayer implementation of the NetworkStorageService interface. All functions pass directly to the equivalent SL function

func (*NetworkStorageServiceSL) AllowAccessFromIPAddressList

func (ns *NetworkStorageServiceSL) AllowAccessFromIPAddressList(ipAddressObjectTemplates []datatypes.Network_Subnet_IpAddress) (bool, error)

AllowAccessFromIpAddressList allows access from Host IP address

func (*NetworkStorageServiceSL) AllowAccessFromSubnetList

func (ns *NetworkStorageServiceSL) AllowAccessFromSubnetList(subnetObjectTemplates []datatypes.Network_Subnet) (bool, error)

AllowAccessFromSubnetList allows access from subnet List

func (*NetworkStorageServiceSL) CreateSnapshot

func (ns *NetworkStorageServiceSL) CreateSnapshot(notes *string) (resp datatypes.Network_Storage, err error)

func (*NetworkStorageServiceSL) DeleteObject

func (ns *NetworkStorageServiceSL) DeleteObject() (resp bool, err error)

func (*NetworkStorageServiceSL) EditObject

func (ns *NetworkStorageServiceSL) EditObject(templateObject *datatypes.Network_Storage) (resp bool, err error)

func (*NetworkStorageServiceSL) Filter

Filter pass-through for NetworkStorageIscsiService.Filter

func (*NetworkStorageServiceSL) GetObject

GetObject pass-through for NetworkStorageIscsiService.GetObject

func (*NetworkStorageServiceSL) GetSnapshots

func (ns *NetworkStorageServiceSL) GetSnapshots() (resp []datatypes.Network_Storage, err error)

func (*NetworkStorageServiceSL) ID

ID pass-through for NetworkStorageService.Id

func (*NetworkStorageServiceSL) Mask

Mask pass-through for NetworkStorageIscsiService.Mask

type NetworkSubnetIpAddressService

type NetworkSubnetIpAddressService interface {
	Filter(string) NetworkSubnetIpAddressService
	Mask(string) NetworkSubnetIpAddressService
	ID(int) NetworkSubnetIpAddressService

	GetObject() (resp datatypes.Network_Subnet_IpAddress, err error)
	GetByIPAddress(ipAddress *string) (datatypes.Network_Subnet_IpAddress, error)
}

NetworkSubnetIpAddressService is a wrapping interface for the softlayer-go API's NetworkSubnetIpAddressService

type NetworkSubnetIpAddressServiceSL

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

NetworkSubnetIpAddressServiceSL is a softlayer implementation of the networkSubnetIpAddressService interface. All functions pass directly to the equivalent SL function

func (*NetworkSubnetIpAddressServiceSL) Filter

Filter pass-through for NetworkSubnetIpAddressService.Filter

func (*NetworkSubnetIpAddressServiceSL) GetByIPAddress

GetByIPAddress returns Network_Subnet_IpAddress from IP address string

func (*NetworkSubnetIpAddressServiceSL) GetObject

GetObject pass-through for NetworkSubnetIpAddressService.GetObject

func (*NetworkSubnetIpAddressServiceSL) ID

ID pass-through for networkSubnetIpAddressService.Id

func (*NetworkSubnetIpAddressServiceSL) Mask

Mask pass-through for NetworkSubnetIpAddressService.Mask

type NetworkSubnetService

type NetworkSubnetService interface {
	Filter(string) NetworkSubnetService
	Mask(string) NetworkSubnetService
	ID(int) NetworkSubnetService

	GetObject() (resp datatypes.Network_Subnet, err error)
}

NetworkSubnetService is a wrapping interface for the softlayer-go API's NetworkSubnetService

type NetworkSubnetServiceSL

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

NetworkSubnetServiceSL is a softlayer implementation of the networkSubnetService interface. All functions pass directly to the equivalent SL function

func (*NetworkSubnetServiceSL) Filter

Filter pass-through for NetworkSubnetService.Filter

func (*NetworkSubnetServiceSL) GetObject

GetObject pass-through for NetworkSubnetService.GetObject

func (*NetworkSubnetServiceSL) ID

ID pass-through for networkSubnetService.Id

func (*NetworkSubnetServiceSL) Mask

Mask pass-through for NetworkSubnetService.Mask

type ProductOrderService

type ProductOrderService interface {
	Filter(string) ProductOrderService
	Mask(string) ProductOrderService
	ID(int) ProductOrderService
	//func (r Product_Order) PlaceOrder(orderData interface{}, saveAsQuote *bool) (resp datatypes.Container_Product_Order_Receipt, err error) {
	PlaceOrder(orderData interface{}, saveAsQuote *bool) (resp datatypes.Container_Product_Order_Receipt, err error)
}

ProductOrderService is a wrapping interface for the softlayer-go API's ProductOrderService

type ProductOrderServiceSL

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

ProductOrderServiceSL is a softlayer implementation of the ProductOrderService interface. All functions pass directly to the equivalent SL function

func (*ProductOrderServiceSL) Filter

Filter pass-through for NetworkStorageIscsiService.Filter

func (*ProductOrderServiceSL) ID

ID pass-through for NetworkStorageService.Id

func (*ProductOrderServiceSL) Mask

Mask pass-through for NetworkStorageIscsiService.Mask

func (*ProductOrderServiceSL) PlaceOrder

func (ps *ProductOrderServiceSL) PlaceOrder(orderData interface{}, saveAsQuote *bool) (resp datatypes.Container_Product_Order_Receipt, err error)

type ProductPackageService

type ProductPackageService interface {
	Filter(string) ProductPackageService
	Mask(string) ProductPackageService
	ID(int) ProductPackageService
	//func (r Product_Package) GetAllObjects() (resp []datatypes.Product_Package, err error) {
	GetAllObjects() (resp []datatypes.Product_Package, err error)
	//func (r Product_Package) GetItemPrices() (resp []datatypes.Product_Item_Price, err error) {
	GetItemPrices() (resp []datatypes.Product_Item_Price, err error)
}

ProductPackageService is a wrapping interface for the softlayer-go API's AccountService

type ProductPackageServiceSL

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

ProductOrderServiceSL is a softlayer implementation of the ProductOrderService interface. All functions pass directly to the equivalent SL function

func (*ProductPackageServiceSL) Filter

Filter pass-through for NetworkStorageIscsiService.Filter

func (*ProductPackageServiceSL) GetAllObjects

func (ps *ProductPackageServiceSL) GetAllObjects() (resp []datatypes.Product_Package, err error)

func (*ProductPackageServiceSL) GetItemPrices

func (ps *ProductPackageServiceSL) GetItemPrices() (resp []datatypes.Product_Item_Price, err error)

func (*ProductPackageServiceSL) ID

ID pass-through for NetworkStorageService.Id

func (*ProductPackageServiceSL) Mask

Mask pass-through for NetworkStorageIscsiService.Mask

type ResourceMetadataService

type ResourceMetadataService interface {
	Filter(string) ResourceMetadataService
	Mask(string) ResourceMetadataService
	ID(int) ResourceMetadataService

	//func (r Resource_Metadata) GetDatacenterId() (resp int, err error) {
	GetDatacenterId() (resp int, err error)
}

ResourceMetadataService is a wrapping interface for the softlayer-go API's AccountService

type ResourceMetadataServiceSL

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

ResourceMetadataServiceSL is a softlayer implementation of the NetworkStorageService interface. All functiors pass directly to the equivalent SL function

func (*ResourceMetadataServiceSL) Filter

Filter pass-through for ResourceMetadataService.Filter

func (*ResourceMetadataServiceSL) GetDatacenterId

func (rs *ResourceMetadataServiceSL) GetDatacenterId() (int, error)

func (*ResourceMetadataServiceSL) ID

ID pass-through for NetworkStorageService.Id

func (*ResourceMetadataServiceSL) Mask

Mask pass-through for ResourceMetadataService.Mask

type Service

type Service interface {
	Filter(string) Service
	ID(int) Service
	Mask(string) Service
}

Service is the parent of all services, providing common methods such as Mask, Id, Filter etc

type Session

type Session interface {
	GetAccountService() AccountService
	GetBillingItemService() BillingItemService
	GetBillingOrderService() BillingOrderService
	GetNetworkStorageIscsiService() NetworkStorageIscsiService
	GetProductOrderService() ProductOrderService
	GetProductPackageService() ProductPackageService
	GetNetworkStorageService() NetworkStorageService
	GetNetworkSubnetService() NetworkSubnetService
	GetNetworkSubnetIpAddressService() NetworkSubnetIpAddressService
	GetResourceMetadataService() ResourceMetadataService
	GetLocationService() LocationService
}

Session interface describes methods requiring implementation

func NewSoftLayerSession

func NewSoftLayerSession(url string, conf provider.ContextCredentials, httpClient *http.Client, debug bool, loggerIn *zap.Logger) Session

NewSoftLayerSession creates a Session backed using a real softlayer-go session

type SessionSL

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

SessionSL implements the backend.Session interface using a real softlayer-go Session

func (*SessionSL) GetAccountService

func (theSession *SessionSL) GetAccountService() AccountService

GetAccountService returns the AccountService from the session

func (*SessionSL) GetBillingItemService

func (theSession *SessionSL) GetBillingItemService() BillingItemService

GetBillingItemService returns the BillingItemService from the session

func (*SessionSL) GetBillingOrderService

func (theSession *SessionSL) GetBillingOrderService() BillingOrderService

GetBillingOrderService returns the BillingOrderService from the session

func (*SessionSL) GetLocationService

func (theSession *SessionSL) GetLocationService() LocationService

func (*SessionSL) GetNetworkStorageIscsiService

func (theSession *SessionSL) GetNetworkStorageIscsiService() NetworkStorageIscsiService

func (*SessionSL) GetNetworkStorageService

func (theSession *SessionSL) GetNetworkStorageService() NetworkStorageService

func (*SessionSL) GetNetworkSubnetIpAddressService

func (theSession *SessionSL) GetNetworkSubnetIpAddressService() NetworkSubnetIpAddressService

func (*SessionSL) GetNetworkSubnetService

func (theSession *SessionSL) GetNetworkSubnetService() NetworkSubnetService

func (*SessionSL) GetProductOrderService

func (theSession *SessionSL) GetProductOrderService() ProductOrderService

func (*SessionSL) GetProductPackageService

func (theSession *SessionSL) GetProductPackageService() ProductPackageService

func (*SessionSL) GetResourceMetadataService

func (theSession *SessionSL) GetResourceMetadataService() ResourceMetadataService

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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