fake

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2020 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ResourceArchive is resource key of fake store
	ResourceArchive = "Archive"
	// ResourceAuthStatus is resource key of fake store
	ResourceAuthStatus = "AuthStatus"
	// ResourceAutoBackup is resource key of fake store
	ResourceAutoBackup = "AutoBackup"
	// ResourceBill is resource key of fake store
	ResourceBill = "Bill"
	// ResourceBridge is resource key of fake store
	ResourceBridge = "Bridge"
	// ResourceCDROM is resource key of fake store
	ResourceCDROM = "CDROM"
	// ResourceContainerRegistry is resource key of fake store
	ResourceContainerRegistry = "ContainerRegistry"
	// ResourceCoupon is resource key of fake store
	ResourceCoupon = "Coupon"
	// ResourceDatabase is resource key of fake store
	ResourceDatabase = "Database"
	// ResourceDisk is resource key of fake store
	ResourceDisk = "Disk"
	// ResourceDiskPlan is resource key of fake store
	ResourceDiskPlan = "DiskPlan"
	// ResourceDNS is resource key of fake store
	ResourceDNS = "DNS"
	// ResourceESME is resource key of fake store
	ResourceESME = "ESME"
	// ResourceGSLB is resource key of fake store
	ResourceGSLB = "GSLB"
	// ResourceIcon is resource key of fake store
	ResourceIcon = "Icon"
	// ResourceInterface is resource key of fake store
	ResourceInterface = "Interface"
	// ResourceInternet is resource key of fake store
	ResourceInternet = "Internet"
	// ResourceInternetPlan is resource key of fake store
	ResourceInternetPlan = "InternetPlan"
	// ResourceIPAddress is resource key of fake store
	ResourceIPAddress = "IPAddress"
	// ResourceIPv6Net is resource key of fake store
	ResourceIPv6Net = "IPv6Net"
	// ResourceIPv6Addr is resource key of fake store
	ResourceIPv6Addr = "IPv6Addr"
	// ResourceLicense is resource key of fake store
	ResourceLicense = "License"
	// ResourceLicenseInfo is resource key of fake store
	ResourceLicenseInfo = "LicenseInfo"
	// ResourceLoadBalancer is resource key of fake store
	ResourceLoadBalancer = "LoadBalancer"
	// ResourceLocalRouter is resource key of fake store
	ResourceLocalRouter = "LocalRouter"
	// ResourceMobileGateway is resource key of fake store
	ResourceMobileGateway = "MobileGateway"
	// ResourceNFS is resource key of fake store
	ResourceNFS = "NFS"
	// ResourceNote is resource key of fake store
	ResourceNote = "Note"
	// ResourcePacketFilter is resource key of fake store
	ResourcePacketFilter = "PacketFilter"
	// ResourcePrivateHost is resource key of fake store
	ResourcePrivateHost = "PrivateHost"
	// ResourcePrivateHostPlan is resource key of fake store
	ResourcePrivateHostPlan = "PrivateHostPlan"
	// ResourceProxyLB is resource key of fake store
	ResourceProxyLB = "ProxyLB"
	// ResourceRegion is resource key of fake store
	ResourceRegion = "Region"
	// ResourceServer is resource key of fake store
	ResourceServer = "Server"
	// ResourceServerPlan is resource key of fake store
	ResourceServerPlan = "ServerPlan"
	// ResourceServiceClass is resource key of fake store
	ResourceServiceClass = "ServiceClass"
	// ResourceSIM is resource key of fake store
	ResourceSIM = "SIM"
	// ResourceSimpleMonitor is resource key of fake store
	ResourceSimpleMonitor = "SimpleMonitor"
	// ResourceSSHKey is resource key of fake store
	ResourceSSHKey = "SSHKey"
	// ResourceSubnet is resource key of fake store
	ResourceSubnet = "Subnet"
	// ResourceSwitch is resource key of fake store
	ResourceSwitch = "Switch"
	// ResourceVPCRouter is resource key of fake store
	ResourceVPCRouter = "VPCRouter"
	// ResourceWebAccel is resource key of fake store
	ResourceWebAccel = "WebAccel"
	// ResourceZone is resource key of fake store
	ResourceZone = "Zone"
)

Variables

View Source
var (
	// GeneratedPublicKey ダミー公開鍵
	GeneratedPublicKey = `` /* 381-byte string literal not displayed */
	// GeneratedPrivateKey ダミー秘密鍵
	GeneratedPrivateKey = `` /* 1773-byte string literal not displayed */
	// GeneratedFingerprint ダミーフィンガープリント
	GeneratedFingerprint = "79:d7:ac:b8:cf:cf:01:44:b2:19:ba:d4:82:fd:c4:2d"
)
View Source
var (
	// DiskCopyDuration ディスクコピー処理のtickerで利用するduration
	DiskCopyDuration = 10 * time.Millisecond
	// PowerOnDuration 電源On処理のtickerで利用するduration
	PowerOnDuration = 10 * time.Millisecond
	// PowerOffDuration 電源Off処理のtickerで利用するduration
	PowerOffDuration = 10 * time.Millisecond
)

Functions

func InitDataStore

func InitDataStore()

InitDataStore データストアの初期化

func NewArchiveOp

func NewArchiveOp() sacloud.ArchiveAPI

NewArchiveOp creates new ArchiveOp instance

func NewAuthStatusOp

func NewAuthStatusOp() sacloud.AuthStatusAPI

NewAuthStatusOp creates new AuthStatusOp instance

func NewAutoBackupOp

func NewAutoBackupOp() sacloud.AutoBackupAPI

NewAutoBackupOp creates new AutoBackupOp instance

func NewBillOp

func NewBillOp() sacloud.BillAPI

NewBillOp creates new BillOp instance

func NewBridgeOp

func NewBridgeOp() sacloud.BridgeAPI

NewBridgeOp creates new BridgeOp instance

func NewCDROMOp

func NewCDROMOp() sacloud.CDROMAPI

NewCDROMOp creates new CDROMOp instance

func NewContainerRegistryOp

func NewContainerRegistryOp() sacloud.ContainerRegistryAPI

NewContainerRegistryOp creates new ContainerRegistryOp instance

func NewCouponOp

func NewCouponOp() sacloud.CouponAPI

NewCouponOp creates new CouponOp instance

func NewDNSOp

func NewDNSOp() sacloud.DNSAPI

NewDNSOp creates new DNSOp instance

func NewDatabaseOp

func NewDatabaseOp() sacloud.DatabaseAPI

NewDatabaseOp creates new DatabaseOp instance

func NewDiskOp

func NewDiskOp() sacloud.DiskAPI

NewDiskOp creates new DiskOp instance

func NewDiskPlanOp

func NewDiskPlanOp() sacloud.DiskPlanAPI

NewDiskPlanOp creates new DiskPlanOp instance

func NewESMEOp added in v2.8.0

func NewESMEOp() sacloud.ESMEAPI

NewESMEOp creates new ESMEOp instance

func NewGSLBOp

func NewGSLBOp() sacloud.GSLBAPI

NewGSLBOp creates new GSLBOp instance

func NewIPAddressOp

func NewIPAddressOp() sacloud.IPAddressAPI

NewIPAddressOp creates new IPAddressOp instance

func NewIPv6AddrOp

func NewIPv6AddrOp() sacloud.IPv6AddrAPI

NewIPv6AddrOp creates new IPv6AddrOp instance

func NewIPv6NetOp

func NewIPv6NetOp() sacloud.IPv6NetAPI

NewIPv6NetOp creates new IPv6NetOp instance

func NewIconOp

func NewIconOp() sacloud.IconAPI

NewIconOp creates new IconOp instance

func NewInterfaceOp

func NewInterfaceOp() sacloud.InterfaceAPI

NewInterfaceOp creates new InterfaceOp instance

func NewInternetOp

func NewInternetOp() sacloud.InternetAPI

NewInternetOp creates new InternetOp instance

func NewInternetPlanOp

func NewInternetPlanOp() sacloud.InternetPlanAPI

NewInternetPlanOp creates new InternetPlanOp instance

func NewLicenseInfoOp

func NewLicenseInfoOp() sacloud.LicenseInfoAPI

NewLicenseInfoOp creates new LicenseInfoOp instance

func NewLicenseOp

func NewLicenseOp() sacloud.LicenseAPI

NewLicenseOp creates new LicenseOp instance

func NewLoadBalancerOp

func NewLoadBalancerOp() sacloud.LoadBalancerAPI

NewLoadBalancerOp creates new LoadBalancerOp instance

func NewLocalRouterOp

func NewLocalRouterOp() sacloud.LocalRouterAPI

NewLocalRouterOp creates new LocalRouterOp instance

func NewMobileGatewayOp

func NewMobileGatewayOp() sacloud.MobileGatewayAPI

NewMobileGatewayOp creates new MobileGatewayOp instance

func NewNFSOp

func NewNFSOp() sacloud.NFSAPI

NewNFSOp creates new NFSOp instance

func NewNoteOp

func NewNoteOp() sacloud.NoteAPI

NewNoteOp creates new NoteOp instance

func NewPacketFilterOp

func NewPacketFilterOp() sacloud.PacketFilterAPI

NewPacketFilterOp creates new PacketFilterOp instance

func NewPrivateHostOp

func NewPrivateHostOp() sacloud.PrivateHostAPI

NewPrivateHostOp creates new PrivateHostOp instance

func NewPrivateHostPlanOp

func NewPrivateHostPlanOp() sacloud.PrivateHostPlanAPI

NewPrivateHostPlanOp creates new PrivateHostPlanOp instance

func NewProxyLBOp

func NewProxyLBOp() sacloud.ProxyLBAPI

NewProxyLBOp creates new ProxyLBOp instance

func NewRegionOp

func NewRegionOp() sacloud.RegionAPI

NewRegionOp creates new RegionOp instance

func NewSIMOp

func NewSIMOp() sacloud.SIMAPI

NewSIMOp creates new SIMOp instance

func NewSSHKeyOp

func NewSSHKeyOp() sacloud.SSHKeyAPI

NewSSHKeyOp creates new SSHKeyOp instance

func NewServerOp

func NewServerOp() sacloud.ServerAPI

NewServerOp creates new ServerOp instance

func NewServerPlanOp

func NewServerPlanOp() sacloud.ServerPlanAPI

NewServerPlanOp creates new ServerPlanOp instance

func NewServiceClassOp

func NewServiceClassOp() sacloud.ServiceClassAPI

NewServiceClassOp creates new ServiceClassOp instance

func NewSimpleMonitorOp

func NewSimpleMonitorOp() sacloud.SimpleMonitorAPI

NewSimpleMonitorOp creates new SimpleMonitorOp instance

func NewSubnetOp

func NewSubnetOp() sacloud.SubnetAPI

NewSubnetOp creates new SubnetOp instance

func NewSwitchOp

func NewSwitchOp() sacloud.SwitchAPI

NewSwitchOp creates new SwitchOp instance

func NewVPCRouterOp

func NewVPCRouterOp() sacloud.VPCRouterAPI

NewVPCRouterOp creates new VPCRouterOp instance

func NewWebAccelOp

func NewWebAccelOp() sacloud.WebAccelAPI

NewWebAccelOp creates new WebAccelOp instance

func NewZoneOp

func NewZoneOp() sacloud.ZoneAPI

NewZoneOp creates new ZoneOp instance

func SwitchFactoryFuncToFake

func SwitchFactoryFuncToFake()

SwitchFactoryFuncToFake switches sacloud.xxxAPI's factory methods to use fake client

Types

type ArchiveOp

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

ArchiveOp is fake implementation of ArchiveAPI interface

func (*ArchiveOp) CloseFTP

func (o *ArchiveOp) CloseFTP(ctx context.Context, zone string, id types.ID) error

CloseFTP is fake implementation

func (*ArchiveOp) Create

func (o *ArchiveOp) Create(ctx context.Context, zone string, param *sacloud.ArchiveCreateRequest) (*sacloud.Archive, error)

Create is fake implementation

func (*ArchiveOp) CreateBlank

CreateBlank is fake implementation

func (*ArchiveOp) CreateFromShared added in v2.2.0

func (o *ArchiveOp) CreateFromShared(ctx context.Context, zone string, sourceArchiveID types.ID, zoneID types.ID, param *sacloud.ArchiveCreateRequestFromShared) (*sacloud.Archive, error)

CreateFromShared is fake implementation

func (*ArchiveOp) Delete

func (o *ArchiveOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*ArchiveOp) Find

func (o *ArchiveOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.ArchiveFindResult, error)

Find is fake implementation

func (*ArchiveOp) OpenFTP

func (o *ArchiveOp) OpenFTP(ctx context.Context, zone string, id types.ID, openOption *sacloud.OpenFTPRequest) (*sacloud.FTPServer, error)

OpenFTP is fake implementation

func (*ArchiveOp) Read

func (o *ArchiveOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Archive, error)

Read is fake implementation

func (*ArchiveOp) Share added in v2.2.0

func (o *ArchiveOp) Share(ctx context.Context, zone string, id types.ID) (*sacloud.ArchiveShareInfo, error)

Share is fake implementation

func (*ArchiveOp) Transfer added in v2.3.0

func (o *ArchiveOp) Transfer(ctx context.Context, zone string, sourceArchiveID types.ID, destZoneID types.ID, param *sacloud.ArchiveTransferRequest) (*sacloud.Archive, error)

Transfer is fake implementation

func (*ArchiveOp) Update

func (o *ArchiveOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.ArchiveUpdateRequest) (*sacloud.Archive, error)

Update is fake implementation

type AuthStatusOp

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

AuthStatusOp is fake implementation of AuthStatusAPI interface

func (*AuthStatusOp) Read

Read is fake implementation

type AutoBackupOp

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

AutoBackupOp is fake implementation of AutoBackupAPI interface

func (*AutoBackupOp) Create

Create is fake implementation

func (*AutoBackupOp) Delete

func (o *AutoBackupOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*AutoBackupOp) Find

Find is fake implementation

func (*AutoBackupOp) Read

func (o *AutoBackupOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.AutoBackup, error)

Read is fake implementation

func (*AutoBackupOp) Update

Update is fake implementation

func (*AutoBackupOp) UpdateSettings

UpdateSettings is fake implementation

type BillOp

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

BillOp is fake implementation of BillAPI interface

func (*BillOp) ByContract

func (o *BillOp) ByContract(ctx context.Context, accountID types.ID) (*sacloud.BillByContractResult, error)

ByContract is fake implementation

func (*BillOp) ByContractYear

func (o *BillOp) ByContractYear(ctx context.Context, accountID types.ID, year int) (*sacloud.BillByContractYearResult, error)

ByContractYear is fake implementation

func (*BillOp) ByContractYearMonth

func (o *BillOp) ByContractYearMonth(ctx context.Context, accountID types.ID, year int, month int) (*sacloud.BillByContractYearMonthResult, error)

ByContractYearMonth is fake implementation

func (*BillOp) Details

func (o *BillOp) Details(ctx context.Context, MemberCode string, id types.ID) (*sacloud.BillDetailsResult, error)

Details is fake implementation

func (*BillOp) DetailsCSV

func (o *BillOp) DetailsCSV(ctx context.Context, MemberCode string, id types.ID) (*sacloud.BillDetailCSV, error)

DetailsCSV is fake implementation

func (*BillOp) Read

func (o *BillOp) Read(ctx context.Context, id types.ID) (*sacloud.BillReadResult, error)

Read is fake implementation

type BridgeOp

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

BridgeOp is fake implementation of BridgeAPI interface

func (*BridgeOp) Create

func (o *BridgeOp) Create(ctx context.Context, zone string, param *sacloud.BridgeCreateRequest) (*sacloud.Bridge, error)

Create is fake implementation

func (*BridgeOp) Delete

func (o *BridgeOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*BridgeOp) Find

func (o *BridgeOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.BridgeFindResult, error)

Find is fake implementation

func (*BridgeOp) Read

func (o *BridgeOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Bridge, error)

Read is fake implementation

func (*BridgeOp) Update

func (o *BridgeOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.BridgeUpdateRequest) (*sacloud.Bridge, error)

Update is fake implementation

type CDROMOp

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

CDROMOp is fake implementation of CDROMAPI interface

func (*CDROMOp) CloseFTP

func (o *CDROMOp) CloseFTP(ctx context.Context, zone string, id types.ID) error

CloseFTP is fake implementation

func (*CDROMOp) Create

Create is fake implementation

func (*CDROMOp) Delete

func (o *CDROMOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*CDROMOp) Find

func (o *CDROMOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.CDROMFindResult, error)

Find is fake implementation

func (*CDROMOp) OpenFTP

func (o *CDROMOp) OpenFTP(ctx context.Context, zone string, id types.ID, openOption *sacloud.OpenFTPRequest) (*sacloud.FTPServer, error)

OpenFTP is fake implementation

func (*CDROMOp) Read

func (o *CDROMOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.CDROM, error)

Read is fake implementation

func (*CDROMOp) Update

func (o *CDROMOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.CDROMUpdateRequest) (*sacloud.CDROM, error)

Update is fake implementation

type ContainerRegistryOp

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

ContainerRegistryOp is fake implementation of ContainerRegistryAPI interface

func (*ContainerRegistryOp) AddUser

AddUser is fake implementation

func (*ContainerRegistryOp) Create

Create is fake implementation

func (*ContainerRegistryOp) Delete

func (o *ContainerRegistryOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*ContainerRegistryOp) DeleteUser

func (o *ContainerRegistryOp) DeleteUser(ctx context.Context, id types.ID, username string) error

DeleteUser is fake implementation

func (*ContainerRegistryOp) Find

Find is fake implementation

func (*ContainerRegistryOp) ListUsers

ListUsers is fake implementation

func (*ContainerRegistryOp) Read

Read is fake implementation

func (*ContainerRegistryOp) Update

Update is fake implementation

func (*ContainerRegistryOp) UpdateSettings

UpdateSettings is fake implementation

func (*ContainerRegistryOp) UpdateUser

UpdateUser is fake implementation

type CouponOp

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

CouponOp is fake implementation of CouponAPI interface

func (*CouponOp) Find

func (o *CouponOp) Find(ctx context.Context, accountID types.ID) (*sacloud.CouponFindResult, error)

Find is fake implementation

type DNSOp

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

DNSOp is fake implementation of DNSAPI interface

func (*DNSOp) Create

func (o *DNSOp) Create(ctx context.Context, param *sacloud.DNSCreateRequest) (*sacloud.DNS, error)

Create is fake implementation

func (*DNSOp) Delete

func (o *DNSOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*DNSOp) Find

func (o *DNSOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.DNSFindResult, error)

Find is fake implementation

func (*DNSOp) Read

func (o *DNSOp) Read(ctx context.Context, id types.ID) (*sacloud.DNS, error)

Read is fake implementation

func (*DNSOp) Update

func (o *DNSOp) Update(ctx context.Context, id types.ID, param *sacloud.DNSUpdateRequest) (*sacloud.DNS, error)

Update is fake implementation

func (*DNSOp) UpdateSettings

func (o *DNSOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.DNSUpdateSettingsRequest) (*sacloud.DNS, error)

UpdateSettings is fake implementation

type DatabaseOp

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

DatabaseOp is fake implementation of DatabaseAPI interface

func (*DatabaseOp) Boot

func (o *DatabaseOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is fake implementation

func (*DatabaseOp) Config

func (o *DatabaseOp) Config(ctx context.Context, zone string, id types.ID) error

Config is fake implementation

func (*DatabaseOp) Create

Create is fake implementation

func (*DatabaseOp) Delete

func (o *DatabaseOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*DatabaseOp) Find

Find is fake implementation

func (*DatabaseOp) MonitorCPU

func (o *DatabaseOp) MonitorCPU(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.CPUTimeActivity, error)

MonitorCPU is fake implementation

func (*DatabaseOp) MonitorDatabase

func (o *DatabaseOp) MonitorDatabase(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.DatabaseActivity, error)

MonitorDatabase is fake implementation

func (*DatabaseOp) MonitorDisk

func (o *DatabaseOp) MonitorDisk(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.DiskActivity, error)

MonitorDisk is fake implementation

func (*DatabaseOp) MonitorInterface

func (o *DatabaseOp) MonitorInterface(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.InterfaceActivity, error)

MonitorInterface is fake implementation

func (*DatabaseOp) Read

func (o *DatabaseOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Database, error)

Read is fake implementation

func (*DatabaseOp) Reset

func (o *DatabaseOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is fake implementation

func (*DatabaseOp) Shutdown

func (o *DatabaseOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *sacloud.ShutdownOption) error

Shutdown is fake implementation

func (*DatabaseOp) Status

func (o *DatabaseOp) Status(ctx context.Context, zone string, id types.ID) (*sacloud.DatabaseStatus, error)

Status is fake implementation

func (*DatabaseOp) Update

Update is fake implementation

func (*DatabaseOp) UpdateSettings

func (o *DatabaseOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *sacloud.DatabaseUpdateSettingsRequest) (*sacloud.Database, error)

UpdateSettings is fake implementation

type DiskOp

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

DiskOp is fake implementation of DiskAPI interface

func (*DiskOp) Config

func (o *DiskOp) Config(ctx context.Context, zone string, id types.ID, edit *sacloud.DiskEditRequest) error

Config is fake implementation

func (*DiskOp) ConnectToServer

func (o *DiskOp) ConnectToServer(ctx context.Context, zone string, id types.ID, serverID types.ID) error

ConnectToServer is fake implementation

func (*DiskOp) Create

func (o *DiskOp) Create(ctx context.Context, zone string, param *sacloud.DiskCreateRequest, distantFrom []types.ID) (*sacloud.Disk, error)

Create is fake implementation

func (*DiskOp) CreateWithConfig

func (o *DiskOp) CreateWithConfig(ctx context.Context, zone string, createParam *sacloud.DiskCreateRequest, editParam *sacloud.DiskEditRequest, bootAtAvailable bool, distantFrom []types.ID) (*sacloud.Disk, error)

CreateWithConfig is fake implementation

func (*DiskOp) Delete

func (o *DiskOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*DiskOp) DisconnectFromServer

func (o *DiskOp) DisconnectFromServer(ctx context.Context, zone string, id types.ID) error

DisconnectFromServer is fake implementation

func (*DiskOp) Find

func (o *DiskOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.DiskFindResult, error)

Find is fake implementation

func (*DiskOp) Install

func (o *DiskOp) Install(ctx context.Context, zone string, id types.ID, installParam *sacloud.DiskInstallRequest, distantFrom []types.ID) (*sacloud.Disk, error)

Install is fake implementation

func (*DiskOp) Monitor

func (o *DiskOp) Monitor(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.DiskActivity, error)

Monitor is fake implementation

func (*DiskOp) MonitorDisk added in v2.8.0

func (o *DiskOp) MonitorDisk(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.DiskActivity, error)

MonitorDisk is fake implementation

func (*DiskOp) Read

func (o *DiskOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Disk, error)

Read is fake implementation

func (*DiskOp) ResizePartition

func (o *DiskOp) ResizePartition(ctx context.Context, zone string, id types.ID, param *sacloud.DiskResizePartitionRequest) error

ResizePartition is fake implementation

func (*DiskOp) ToBlank

func (o *DiskOp) ToBlank(ctx context.Context, zone string, id types.ID) error

ToBlank is fake implementation

func (*DiskOp) Update

func (o *DiskOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.DiskUpdateRequest) (*sacloud.Disk, error)

Update is fake implementation

type DiskPlanOp

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

DiskPlanOp is fake implementation of DiskPlanAPI interface

func (*DiskPlanOp) Find

Find is fake implementation

func (*DiskPlanOp) Read

func (o *DiskPlanOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.DiskPlan, error)

Read is fake implementation

type ESMEOp added in v2.8.0

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

ESMEOp is fake implementation of ESMEAPI interface

func (*ESMEOp) Create added in v2.8.0

func (o *ESMEOp) Create(ctx context.Context, param *sacloud.ESMECreateRequest) (*sacloud.ESME, error)

Create is fake implementation

func (*ESMEOp) Delete added in v2.8.0

func (o *ESMEOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*ESMEOp) Find added in v2.8.0

func (o *ESMEOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.ESMEFindResult, error)

Find is fake implementation

func (*ESMEOp) Logs added in v2.8.0

func (o *ESMEOp) Logs(ctx context.Context, id types.ID) ([]*sacloud.ESMELogs, error)

func (*ESMEOp) Read added in v2.8.0

func (o *ESMEOp) Read(ctx context.Context, id types.ID) (*sacloud.ESME, error)

Read is fake implementation

func (*ESMEOp) SendMessageWithGeneratedOTP added in v2.8.0

func (o *ESMEOp) SendMessageWithGeneratedOTP(ctx context.Context, id types.ID, param *sacloud.ESMESendMessageWithGeneratedOTPRequest) (*sacloud.ESMESendMessageResult, error)

func (*ESMEOp) SendMessageWithInputtedOTP added in v2.8.0

func (*ESMEOp) Update added in v2.8.0

func (o *ESMEOp) Update(ctx context.Context, id types.ID, param *sacloud.ESMEUpdateRequest) (*sacloud.ESME, error)

Update is fake implementation

type GSLBOp

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

GSLBOp is fake implementation of GSLBAPI interface

func (*GSLBOp) Create

func (o *GSLBOp) Create(ctx context.Context, param *sacloud.GSLBCreateRequest) (*sacloud.GSLB, error)

Create is fake implementation

func (*GSLBOp) Delete

func (o *GSLBOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*GSLBOp) Find

func (o *GSLBOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.GSLBFindResult, error)

Find is fake implementation

func (*GSLBOp) Read

func (o *GSLBOp) Read(ctx context.Context, id types.ID) (*sacloud.GSLB, error)

Read is fake implementation

func (*GSLBOp) Update

func (o *GSLBOp) Update(ctx context.Context, id types.ID, param *sacloud.GSLBUpdateRequest) (*sacloud.GSLB, error)

Update is fake implementation

func (*GSLBOp) UpdateSettings

func (o *GSLBOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.GSLBUpdateSettingsRequest) (*sacloud.GSLB, error)

UpdateSettings is fake implementation

type IPAddressOp

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

IPAddressOp is fake implementation of IPAddressAPI interface

func (*IPAddressOp) List

List is fake implementation

func (*IPAddressOp) Read

func (o *IPAddressOp) Read(ctx context.Context, zone string, ipAddress string) (*sacloud.IPAddress, error)

Read is fake implementation

func (*IPAddressOp) UpdateHostName

func (o *IPAddressOp) UpdateHostName(ctx context.Context, zone string, ipAddress string, hostName string) (*sacloud.IPAddress, error)

UpdateHostName is fake implementation

type IPv6AddrOp

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

IPv6AddrOp is fake implementation of IPv6AddrAPI interface

func (*IPv6AddrOp) Create

Create is fake implementation

func (*IPv6AddrOp) Delete

func (o *IPv6AddrOp) Delete(ctx context.Context, zone string, ipv6addr string) error

Delete is fake implementation

func (*IPv6AddrOp) Find

Find is fake implementation

func (*IPv6AddrOp) Read

func (o *IPv6AddrOp) Read(ctx context.Context, zone string, ipv6addr string) (*sacloud.IPv6Addr, error)

Read is fake implementation

func (*IPv6AddrOp) Update

func (o *IPv6AddrOp) Update(ctx context.Context, zone string, ipv6addr string, param *sacloud.IPv6AddrUpdateRequest) (*sacloud.IPv6Addr, error)

Update is fake implementation

type IPv6NetOp

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

IPv6NetOp is fake implementation of IPv6NetAPI interface

func (*IPv6NetOp) Find added in v2.8.0

func (o *IPv6NetOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.IPv6NetFindResult, error)

List is fake implementation

func (*IPv6NetOp) List

List is fake implementation

func (*IPv6NetOp) Read

func (o *IPv6NetOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.IPv6Net, error)

Read is fake implementation

type IconOp

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

IconOp is fake implementation of IconAPI interface

func (*IconOp) Create

func (o *IconOp) Create(ctx context.Context, param *sacloud.IconCreateRequest) (*sacloud.Icon, error)

Create is fake implementation

func (*IconOp) Delete

func (o *IconOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*IconOp) Find

func (o *IconOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.IconFindResult, error)

Find is fake implementation

func (*IconOp) Read

func (o *IconOp) Read(ctx context.Context, id types.ID) (*sacloud.Icon, error)

Read is fake implementation

func (*IconOp) Update

func (o *IconOp) Update(ctx context.Context, id types.ID, param *sacloud.IconUpdateRequest) (*sacloud.Icon, error)

Update is fake implementation

type InMemoryStore

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

InMemoryStore データをメモリ上に保存するためのデータストア

func NewInMemoryStore

func NewInMemoryStore() *InMemoryStore

NewInMemoryStore .

func (*InMemoryStore) Delete

func (s *InMemoryStore) Delete(resourceKey, zone string, id types.ID)

Delete .

func (*InMemoryStore) Get

func (s *InMemoryStore) Get(resourceKey, zone string, id types.ID) interface{}

Get .

func (*InMemoryStore) Init

func (s *InMemoryStore) Init() error

Init .

func (*InMemoryStore) List

func (s *InMemoryStore) List(resourceKey, zone string) []interface{}

List .

func (*InMemoryStore) NeedInitData

func (s *InMemoryStore) NeedInitData() bool

NeedInitData .

func (*InMemoryStore) Put

func (s *InMemoryStore) Put(resourceKey, zone string, id types.ID, value interface{})

Put .

type InterfaceOp

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

InterfaceOp is fake implementation of InterfaceAPI interface

func (*InterfaceOp) ConnectToPacketFilter

func (o *InterfaceOp) ConnectToPacketFilter(ctx context.Context, zone string, id types.ID, packetFilterID types.ID) error

ConnectToPacketFilter is fake implementation

func (*InterfaceOp) ConnectToSharedSegment

func (o *InterfaceOp) ConnectToSharedSegment(ctx context.Context, zone string, id types.ID) error

ConnectToSharedSegment is fake implementation

func (*InterfaceOp) ConnectToSwitch

func (o *InterfaceOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error

ConnectToSwitch is fake implementation

func (*InterfaceOp) Create

Create is fake implementation

func (*InterfaceOp) Delete

func (o *InterfaceOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*InterfaceOp) DisconnectFromPacketFilter

func (o *InterfaceOp) DisconnectFromPacketFilter(ctx context.Context, zone string, id types.ID) error

DisconnectFromPacketFilter is fake implementation

func (*InterfaceOp) DisconnectFromSwitch

func (o *InterfaceOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error

DisconnectFromSwitch is fake implementation

func (*InterfaceOp) Find

Find is fake implementation

func (*InterfaceOp) Monitor

func (o *InterfaceOp) Monitor(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.InterfaceActivity, error)

Monitor is fake implementation

func (*InterfaceOp) Read

func (o *InterfaceOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Interface, error)

Read is fake implementation

func (*InterfaceOp) Update

Update is fake implementation

type InternetOp

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

InternetOp is fake implementation of InternetAPI interface

func (*InternetOp) AddSubnet

AddSubnet is fake implementation

func (*InternetOp) Create

Create is fake implementation

func (*InternetOp) Delete

func (o *InternetOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*InternetOp) DeleteSubnet

func (o *InternetOp) DeleteSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID) error

DeleteSubnet is fake implementation

func (*InternetOp) DisableIPv6

func (o *InternetOp) DisableIPv6(ctx context.Context, zone string, id types.ID, ipv6netID types.ID) error

DisableIPv6 is fake implementation

func (*InternetOp) EnableIPv6

func (o *InternetOp) EnableIPv6(ctx context.Context, zone string, id types.ID) (*sacloud.IPv6NetInfo, error)

EnableIPv6 is fake implementation

func (*InternetOp) Find

Find is fake implementation

func (*InternetOp) Monitor

func (o *InternetOp) Monitor(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.RouterActivity, error)

Monitor is fake implementation

func (*InternetOp) MonitorRouter added in v2.8.0

func (o *InternetOp) MonitorRouter(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.RouterActivity, error)

MonitorRouter is fake implementation

func (*InternetOp) Read

func (o *InternetOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Internet, error)

Read is fake implementation

func (*InternetOp) Update

Update is fake implementation

func (*InternetOp) UpdateBandWidth

func (o *InternetOp) UpdateBandWidth(ctx context.Context, zone string, id types.ID, param *sacloud.InternetUpdateBandWidthRequest) (*sacloud.Internet, error)

UpdateBandWidth is fake implementation

func (*InternetOp) UpdateSubnet

UpdateSubnet is fake implementation

type InternetPlanOp

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

InternetPlanOp is fake implementation of InternetPlanAPI interface

func (*InternetPlanOp) Find

Find is fake implementation

func (*InternetPlanOp) Read

func (o *InternetPlanOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.InternetPlan, error)

Read is fake implementation

type JSONFileStore

type JSONFileStore struct {
	Path       string
	Ctx        context.Context
	NoInitData bool
	// contains filtered or unexported fields
}

JSONFileStore .

func NewJSONFileStore

func NewJSONFileStore(path string) *JSONFileStore

NewJSONFileStore .

func (*JSONFileStore) Delete

func (s *JSONFileStore) Delete(resourceKey, zone string, id types.ID)

Delete .

func (*JSONFileStore) Get

func (s *JSONFileStore) Get(resourceKey, zone string, id types.ID) interface{}

Get .

func (*JSONFileStore) Init

func (s *JSONFileStore) Init() error

Init .

func (*JSONFileStore) List

func (s *JSONFileStore) List(resourceKey, zone string) []interface{}

List .

func (*JSONFileStore) NeedInitData

func (s *JSONFileStore) NeedInitData() bool

NeedInitData .

func (*JSONFileStore) Put

func (s *JSONFileStore) Put(resourceKey, zone string, id types.ID, value interface{})

Put .

type JSONFileStoreData

type JSONFileStoreData map[string]map[string]interface{}

JSONFileStoreData .

func (JSONFileStoreData) MarshalJSON

func (d JSONFileStoreData) MarshalJSON() ([]byte, error)

MarshalJSON .

func (*JSONFileStoreData) UnmarshalJSON

func (d *JSONFileStoreData) UnmarshalJSON(data []byte) error

UnmarshalJSON .

type LicenseInfoOp

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

LicenseInfoOp is fake implementation of LicenseInfoAPI interface

func (*LicenseInfoOp) Find

Find is fake implementation

func (*LicenseInfoOp) Read

Read is fake implementation

type LicenseOp

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

LicenseOp is fake implementation of LicenseAPI interface

func (*LicenseOp) Create

Create is fake implementation

func (*LicenseOp) Delete

func (o *LicenseOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*LicenseOp) Find

Find is fake implementation

func (*LicenseOp) Read

func (o *LicenseOp) Read(ctx context.Context, id types.ID) (*sacloud.License, error)

Read is fake implementation

func (*LicenseOp) Update

Update is fake implementation

type LoadBalancerOp

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

LoadBalancerOp is fake implementation of LoadBalancerAPI interface

func (*LoadBalancerOp) Boot

func (o *LoadBalancerOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is fake implementation

func (*LoadBalancerOp) Config

func (o *LoadBalancerOp) Config(ctx context.Context, zone string, id types.ID) error

Config is fake implementation

func (*LoadBalancerOp) Create

Create is fake implementation

func (*LoadBalancerOp) Delete

func (o *LoadBalancerOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*LoadBalancerOp) Find

Find is fake implementation

func (*LoadBalancerOp) MonitorInterface

func (o *LoadBalancerOp) MonitorInterface(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.InterfaceActivity, error)

MonitorInterface is fake implementation

func (*LoadBalancerOp) Read

func (o *LoadBalancerOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.LoadBalancer, error)

Read is fake implementation

func (*LoadBalancerOp) Reset

func (o *LoadBalancerOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is fake implementation

func (*LoadBalancerOp) Shutdown

func (o *LoadBalancerOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *sacloud.ShutdownOption) error

Shutdown is fake implementation

func (*LoadBalancerOp) Status

Status is fake implementation

func (*LoadBalancerOp) Update

Update is fake implementation

func (*LoadBalancerOp) UpdateSettings

UpdateSettings is fake implementation

type LocalRouterOp

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

LocalRouterOp is fake implementation of LocalRouterAPI interface

func (*LocalRouterOp) Create

Create is fake implementation

func (*LocalRouterOp) Delete

func (o *LocalRouterOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*LocalRouterOp) Find

Find is fake implementation

func (*LocalRouterOp) HealthStatus

func (o *LocalRouterOp) HealthStatus(ctx context.Context, id types.ID) (*sacloud.LocalRouterHealth, error)

HealthStatus is fake implementation

func (*LocalRouterOp) MonitorLocalRouter

func (o *LocalRouterOp) MonitorLocalRouter(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.LocalRouterActivity, error)

MonitorLocalRouter is fake implementation

func (*LocalRouterOp) Read

Read is fake implementation

func (*LocalRouterOp) Update

Update is fake implementation

func (*LocalRouterOp) UpdateSettings

UpdateSettings is fake implementation

type MobileGatewayOp

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

MobileGatewayOp is fake implementation of MobileGatewayAPI interface

func (*MobileGatewayOp) AddSIM

AddSIM is fake implementation

func (*MobileGatewayOp) Boot

func (o *MobileGatewayOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is fake implementation

func (*MobileGatewayOp) Config

func (o *MobileGatewayOp) Config(ctx context.Context, zone string, id types.ID) error

Config is fake implementation

func (*MobileGatewayOp) ConnectToSwitch

func (o *MobileGatewayOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error

ConnectToSwitch is fake implementation

func (*MobileGatewayOp) Create

Create is fake implementation

func (*MobileGatewayOp) Delete

func (o *MobileGatewayOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*MobileGatewayOp) DeleteSIM

func (o *MobileGatewayOp) DeleteSIM(ctx context.Context, zone string, id types.ID, simID types.ID) error

DeleteSIM is fake implementation

func (*MobileGatewayOp) DeleteTrafficConfig

func (o *MobileGatewayOp) DeleteTrafficConfig(ctx context.Context, zone string, id types.ID) error

DeleteTrafficConfig is fake implementation

func (*MobileGatewayOp) DisconnectFromSwitch

func (o *MobileGatewayOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error

DisconnectFromSwitch is fake implementation

func (*MobileGatewayOp) Find

Find is fake implementation

func (*MobileGatewayOp) GetDNS

GetDNS is fake implementation

func (*MobileGatewayOp) GetSIMRoutes

func (o *MobileGatewayOp) GetSIMRoutes(ctx context.Context, zone string, id types.ID) (sacloud.MobileGatewaySIMRoutes, error)

GetSIMRoutes is fake implementation

func (*MobileGatewayOp) GetTrafficConfig

func (o *MobileGatewayOp) GetTrafficConfig(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGatewayTrafficControl, error)

GetTrafficConfig is fake implementation

func (*MobileGatewayOp) ListSIM

ListSIM is fake implementation

func (*MobileGatewayOp) Logs

Logs is fake implementation

func (*MobileGatewayOp) MonitorInterface

func (o *MobileGatewayOp) MonitorInterface(ctx context.Context, zone string, id types.ID, index int, condition *sacloud.MonitorCondition) (*sacloud.InterfaceActivity, error)

MonitorInterface is fake implementation

func (*MobileGatewayOp) Read

Read is fake implementation

func (*MobileGatewayOp) Reset

func (o *MobileGatewayOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is fake implementation

func (*MobileGatewayOp) SetDNS

SetDNS is fake implementation

func (*MobileGatewayOp) SetSIMRoutes

func (o *MobileGatewayOp) SetSIMRoutes(ctx context.Context, zone string, id types.ID, param []*sacloud.MobileGatewaySIMRouteParam) error

SetSIMRoutes is fake implementation

func (*MobileGatewayOp) SetTrafficConfig

func (o *MobileGatewayOp) SetTrafficConfig(ctx context.Context, zone string, id types.ID, param *sacloud.MobileGatewayTrafficControl) error

SetTrafficConfig is fake implementation

func (*MobileGatewayOp) Shutdown

func (o *MobileGatewayOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *sacloud.ShutdownOption) error

Shutdown is fake implementation

func (*MobileGatewayOp) TrafficStatus

TrafficStatus is fake implementation

func (*MobileGatewayOp) Update

Update is fake implementation

func (*MobileGatewayOp) UpdateSettings

UpdateSettings is fake implementation

type NFSOp

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

NFSOp is fake implementation of NFSAPI interface

func (*NFSOp) Boot

func (o *NFSOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is fake implementation

func (*NFSOp) Create

func (o *NFSOp) Create(ctx context.Context, zone string, param *sacloud.NFSCreateRequest) (*sacloud.NFS, error)

Create is fake implementation

func (*NFSOp) Delete

func (o *NFSOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*NFSOp) Find

func (o *NFSOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.NFSFindResult, error)

Find is fake implementation

func (*NFSOp) MonitorFreeDiskSize

func (o *NFSOp) MonitorFreeDiskSize(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.FreeDiskSizeActivity, error)

MonitorFreeDiskSize is fake implementation

func (*NFSOp) MonitorInterface

func (o *NFSOp) MonitorInterface(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.InterfaceActivity, error)

MonitorInterface is fake implementation

func (*NFSOp) Read

func (o *NFSOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.NFS, error)

Read is fake implementation

func (*NFSOp) Reset

func (o *NFSOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is fake implementation

func (*NFSOp) Shutdown

func (o *NFSOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *sacloud.ShutdownOption) error

Shutdown is fake implementation

func (*NFSOp) Update

func (o *NFSOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.NFSUpdateRequest) (*sacloud.NFS, error)

Update is fake implementation

type NoteOp

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

NoteOp is fake implementation of NoteAPI interface

func (*NoteOp) Create

func (o *NoteOp) Create(ctx context.Context, param *sacloud.NoteCreateRequest) (*sacloud.Note, error)

Create is fake implementation

func (*NoteOp) Delete

func (o *NoteOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*NoteOp) Find

func (o *NoteOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.NoteFindResult, error)

Find is fake implementation

func (*NoteOp) Read

func (o *NoteOp) Read(ctx context.Context, id types.ID) (*sacloud.Note, error)

Read is fake implementation

func (*NoteOp) Update

func (o *NoteOp) Update(ctx context.Context, id types.ID, param *sacloud.NoteUpdateRequest) (*sacloud.Note, error)

Update is fake implementation

type PacketFilterOp

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

PacketFilterOp is fake implementation of PacketFilterAPI interface

func (*PacketFilterOp) Create

Create is fake implementation

func (*PacketFilterOp) Delete

func (o *PacketFilterOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*PacketFilterOp) Find

Find is fake implementation

func (*PacketFilterOp) Read

func (o *PacketFilterOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.PacketFilter, error)

Read is fake implementation

func (*PacketFilterOp) Update

Update is fake implementation

type PrivateHostOp

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

PrivateHostOp is fake implementation of PrivateHostAPI interface

func (*PrivateHostOp) Create

Create is fake implementation

func (*PrivateHostOp) Delete

func (o *PrivateHostOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*PrivateHostOp) Find

Find is fake implementation

func (*PrivateHostOp) Read

func (o *PrivateHostOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.PrivateHost, error)

Read is fake implementation

func (*PrivateHostOp) Update

Update is fake implementation

type PrivateHostPlanOp

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

PrivateHostPlanOp is fake implementation of PrivateHostPlanAPI interface

func (*PrivateHostPlanOp) Find

Find is fake implementation

func (*PrivateHostPlanOp) Read

Read is fake implementation

type ProxyLBOp

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

ProxyLBOp is fake implementation of ProxyLBAPI interface

func (*ProxyLBOp) ChangePlan

ChangePlan is fake implementation

func (*ProxyLBOp) Create

Create is fake implementation

func (*ProxyLBOp) Delete

func (o *ProxyLBOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*ProxyLBOp) DeleteCertificates

func (o *ProxyLBOp) DeleteCertificates(ctx context.Context, id types.ID) error

DeleteCertificates is fake implementation

func (*ProxyLBOp) Find

Find is fake implementation

func (*ProxyLBOp) GetCertificates

func (o *ProxyLBOp) GetCertificates(ctx context.Context, id types.ID) (*sacloud.ProxyLBCertificates, error)

GetCertificates is fake implementation

func (*ProxyLBOp) HealthStatus

func (o *ProxyLBOp) HealthStatus(ctx context.Context, id types.ID) (*sacloud.ProxyLBHealth, error)

HealthStatus is fake implementation

func (*ProxyLBOp) MonitorConnection

func (o *ProxyLBOp) MonitorConnection(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.ConnectionActivity, error)

MonitorConnection is fake implementation

func (*ProxyLBOp) Read

func (o *ProxyLBOp) Read(ctx context.Context, id types.ID) (*sacloud.ProxyLB, error)

Read is fake implementation

func (*ProxyLBOp) RenewLetsEncryptCert

func (o *ProxyLBOp) RenewLetsEncryptCert(ctx context.Context, id types.ID) error

RenewLetsEncryptCert is fake implementation

func (*ProxyLBOp) SetCertificates

SetCertificates is fake implementation

func (*ProxyLBOp) Update

Update is fake implementation

func (*ProxyLBOp) UpdateSettings

func (o *ProxyLBOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.ProxyLBUpdateSettingsRequest) (*sacloud.ProxyLB, error)

UpdateSettings is fake implementation

type RegionOp

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

RegionOp is fake implementation of RegionAPI interface

func (*RegionOp) Find

Find is fake implementation

func (*RegionOp) Read

func (o *RegionOp) Read(ctx context.Context, id types.ID) (*sacloud.Region, error)

Read is fake implementation

type SIMOp

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

SIMOp is fake implementation of SIMAPI interface

func (*SIMOp) Activate

func (o *SIMOp) Activate(ctx context.Context, id types.ID) error

Activate is fake implementation

func (*SIMOp) AssignIP

func (o *SIMOp) AssignIP(ctx context.Context, id types.ID, param *sacloud.SIMAssignIPRequest) error

AssignIP is fake implementation

func (*SIMOp) ClearIP

func (o *SIMOp) ClearIP(ctx context.Context, id types.ID) error

ClearIP is fake implementation

func (*SIMOp) Create

func (o *SIMOp) Create(ctx context.Context, param *sacloud.SIMCreateRequest) (*sacloud.SIM, error)

Create is fake implementation

func (*SIMOp) Deactivate

func (o *SIMOp) Deactivate(ctx context.Context, id types.ID) error

Deactivate is fake implementation

func (*SIMOp) Delete

func (o *SIMOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*SIMOp) Find

func (o *SIMOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.SIMFindResult, error)

Find is fake implementation

func (*SIMOp) GetNetworkOperator

func (o *SIMOp) GetNetworkOperator(ctx context.Context, id types.ID) ([]*sacloud.SIMNetworkOperatorConfig, error)

GetNetworkOperator is fake implementation

func (*SIMOp) IMEILock

func (o *SIMOp) IMEILock(ctx context.Context, id types.ID, param *sacloud.SIMIMEILockRequest) error

IMEILock is fake implementation

func (*SIMOp) IMEIUnlock

func (o *SIMOp) IMEIUnlock(ctx context.Context, id types.ID) error

IMEIUnlock is fake implementation

func (*SIMOp) Logs

func (o *SIMOp) Logs(ctx context.Context, id types.ID) (*sacloud.SIMLogsResult, error)

Logs is fake implementation

func (*SIMOp) MonitorSIM

func (o *SIMOp) MonitorSIM(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.LinkActivity, error)

MonitorSIM is fake implementation

func (*SIMOp) Read

func (o *SIMOp) Read(ctx context.Context, id types.ID) (*sacloud.SIM, error)

Read is fake implementation

func (*SIMOp) SetNetworkOperator

func (o *SIMOp) SetNetworkOperator(ctx context.Context, id types.ID, configs []*sacloud.SIMNetworkOperatorConfig) error

SetNetworkOperator is fake implementation

func (*SIMOp) Status

func (o *SIMOp) Status(ctx context.Context, id types.ID) (*sacloud.SIMInfo, error)

Status is fake implementation

func (*SIMOp) Update

func (o *SIMOp) Update(ctx context.Context, id types.ID, param *sacloud.SIMUpdateRequest) (*sacloud.SIM, error)

Update is fake implementation

type SSHKeyOp

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

SSHKeyOp is fake implementation of SSHKeyAPI interface

func (*SSHKeyOp) Create

Create is fake implementation

func (*SSHKeyOp) Delete

func (o *SSHKeyOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*SSHKeyOp) Find

Find is fake implementation

func (*SSHKeyOp) Generate

Generate is fake implementation

func (*SSHKeyOp) Read

func (o *SSHKeyOp) Read(ctx context.Context, id types.ID) (*sacloud.SSHKey, error)

Read is fake implementation

func (*SSHKeyOp) Update

func (o *SSHKeyOp) Update(ctx context.Context, id types.ID, param *sacloud.SSHKeyUpdateRequest) (*sacloud.SSHKey, error)

Update is fake implementation

type ServerOp

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

ServerOp is fake implementation of ServerAPI interface

func (*ServerOp) Boot

func (o *ServerOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is fake implementation

func (*ServerOp) ChangePlan

func (o *ServerOp) ChangePlan(ctx context.Context, zone string, id types.ID, plan *sacloud.ServerChangePlanRequest) (*sacloud.Server, error)

ChangePlan is fake implementation

func (*ServerOp) Create

func (o *ServerOp) Create(ctx context.Context, zone string, param *sacloud.ServerCreateRequest) (*sacloud.Server, error)

Create is fake implementation

func (*ServerOp) Delete

func (o *ServerOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*ServerOp) DeleteWithDisks

func (o *ServerOp) DeleteWithDisks(ctx context.Context, zone string, id types.ID, disks *sacloud.ServerDeleteWithDisksRequest) error

DeleteWithDisks is fake implementation

func (*ServerOp) EjectCDROM

func (o *ServerOp) EjectCDROM(ctx context.Context, zone string, id types.ID, insertParam *sacloud.EjectCDROMRequest) error

EjectCDROM is fake implementation

func (*ServerOp) Find

func (o *ServerOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.ServerFindResult, error)

Find is fake implementation

func (*ServerOp) GetVNCProxy

func (o *ServerOp) GetVNCProxy(ctx context.Context, zone string, id types.ID) (*sacloud.VNCProxyInfo, error)

GetVNCProxy is fake implementation

func (*ServerOp) InsertCDROM

func (o *ServerOp) InsertCDROM(ctx context.Context, zone string, id types.ID, insertParam *sacloud.InsertCDROMRequest) error

InsertCDROM is fake implementation

func (*ServerOp) Monitor

func (o *ServerOp) Monitor(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.CPUTimeActivity, error)

Monitor is fake implementation

func (*ServerOp) MonitorCPU added in v2.8.0

func (o *ServerOp) MonitorCPU(ctx context.Context, zone string, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.CPUTimeActivity, error)

MonitorCPU is fake implementation

func (*ServerOp) Read

func (o *ServerOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Server, error)

Read is fake implementation

func (*ServerOp) Reset

func (o *ServerOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is fake implementation

func (*ServerOp) SendKey

func (o *ServerOp) SendKey(ctx context.Context, zone string, id types.ID, keyboardParam *sacloud.SendKeyRequest) error

SendKey is fake implementation

func (*ServerOp) Shutdown

func (o *ServerOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *sacloud.ShutdownOption) error

Shutdown is fake implementation

func (*ServerOp) Update

func (o *ServerOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.ServerUpdateRequest) (*sacloud.Server, error)

Update is fake implementation

type ServerPlanOp

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

ServerPlanOp is fake implementation of ServerPlanAPI interface

func (*ServerPlanOp) Find

Find is fake implementation

func (*ServerPlanOp) Read

func (o *ServerPlanOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.ServerPlan, error)

Read is fake implementation

type ServiceClassOp

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

ServiceClassOp is fake implementation of ServiceClassAPI interface

func (*ServiceClassOp) Find

Find is fake implementation

type SimpleMonitorOp

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

SimpleMonitorOp is fake implementation of SimpleMonitorAPI interface

func (*SimpleMonitorOp) Create

Create is fake implementation

func (*SimpleMonitorOp) Delete

func (o *SimpleMonitorOp) Delete(ctx context.Context, id types.ID) error

Delete is fake implementation

func (*SimpleMonitorOp) Find

Find is fake implementation

func (*SimpleMonitorOp) HealthStatus

HealthStatus is fake implementation

func (*SimpleMonitorOp) MonitorResponseTime

func (o *SimpleMonitorOp) MonitorResponseTime(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.ResponseTimeSecActivity, error)

MonitorResponseTime is fake implementation

func (*SimpleMonitorOp) Read

Read is fake implementation

func (*SimpleMonitorOp) Update

Update is fake implementation

func (*SimpleMonitorOp) UpdateSettings

UpdateSettings is fake implementation

type Store

type Store interface {
	Init() error
	NeedInitData() bool
	Put(resourceKey, zone string, id types.ID, value interface{})
	Get(resourceKey, zone string, id types.ID) interface{}
	List(resourceKey, zone string) []interface{}
	Delete(resourceKey, zone string, id types.ID)
}

Store fakeドライバーでのバックエンド(永続化)を担当するドライバーインターフェース

var DataStore Store

DataStore fakeドライバが利用するデータストア

type SubnetOp

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

SubnetOp is fake implementation of SubnetAPI interface

func (*SubnetOp) Find

func (o *SubnetOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.SubnetFindResult, error)

Find is fake implementation

func (*SubnetOp) Read

func (o *SubnetOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Subnet, error)

Read is fake implementation

type SwitchOp

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

SwitchOp is fake implementation of SwitchAPI interface

func (*SwitchOp) ConnectToBridge

func (o *SwitchOp) ConnectToBridge(ctx context.Context, zone string, id types.ID, bridgeID types.ID) error

ConnectToBridge is fake implementation

func (*SwitchOp) Create

func (o *SwitchOp) Create(ctx context.Context, zone string, param *sacloud.SwitchCreateRequest) (*sacloud.Switch, error)

Create is fake implementation

func (*SwitchOp) Delete

func (o *SwitchOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*SwitchOp) DisconnectFromBridge

func (o *SwitchOp) DisconnectFromBridge(ctx context.Context, zone string, id types.ID) error

DisconnectFromBridge is fake implementation

func (*SwitchOp) Find

func (o *SwitchOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.SwitchFindResult, error)

Find is fake implementation

func (*SwitchOp) GetServers

func (o *SwitchOp) GetServers(ctx context.Context, zone string, id types.ID) (*sacloud.SwitchGetServersResult, error)

GetServers is fake implementation

func (*SwitchOp) Read

func (o *SwitchOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Switch, error)

Read is fake implementation

func (*SwitchOp) Update

func (o *SwitchOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.SwitchUpdateRequest) (*sacloud.Switch, error)

Update is fake implementation

type VPCRouterOp

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

VPCRouterOp is fake implementation of VPCRouterAPI interface

func (*VPCRouterOp) Boot

func (o *VPCRouterOp) Boot(ctx context.Context, zone string, id types.ID) error

Boot is fake implementation

func (*VPCRouterOp) Config

func (o *VPCRouterOp) Config(ctx context.Context, zone string, id types.ID) error

Config is fake implementation

func (*VPCRouterOp) ConnectToSwitch

func (o *VPCRouterOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, nicIndex int, switchID types.ID) error

ConnectToSwitch is fake implementation

func (*VPCRouterOp) Create

Create is fake implementation

func (*VPCRouterOp) Delete

func (o *VPCRouterOp) Delete(ctx context.Context, zone string, id types.ID) error

Delete is fake implementation

func (*VPCRouterOp) DisconnectFromSwitch

func (o *VPCRouterOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID, nicIndex int) error

DisconnectFromSwitch is fake implementation

func (*VPCRouterOp) Find

Find is fake implementation

func (*VPCRouterOp) MonitorInterface

func (o *VPCRouterOp) MonitorInterface(ctx context.Context, zone string, id types.ID, index int, condition *sacloud.MonitorCondition) (*sacloud.InterfaceActivity, error)

MonitorInterface is fake implementation

func (*VPCRouterOp) Read

func (o *VPCRouterOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.VPCRouter, error)

Read is fake implementation

func (*VPCRouterOp) Reset

func (o *VPCRouterOp) Reset(ctx context.Context, zone string, id types.ID) error

Reset is fake implementation

func (*VPCRouterOp) Shutdown

func (o *VPCRouterOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *sacloud.ShutdownOption) error

Shutdown is fake implementation

func (*VPCRouterOp) Status

func (o *VPCRouterOp) Status(ctx context.Context, zone string, id types.ID) (*sacloud.VPCRouterStatus, error)

Status is fake implementation

func (*VPCRouterOp) Update

Update is fake implementation

func (*VPCRouterOp) UpdateSettings

func (o *VPCRouterOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *sacloud.VPCRouterUpdateSettingsRequest) (*sacloud.VPCRouter, error)

UpdateSettings is fake implementation

type WebAccelOp

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

WebAccelOp is fake implementation of WebAccelAPI interface

func (*WebAccelOp) CreateCertificate

func (o *WebAccelOp) CreateCertificate(ctx context.Context, id types.ID, param *sacloud.WebAccelCertRequest) (*sacloud.WebAccelCerts, error)

CreateCertificate is fake implementation

func (*WebAccelOp) DeleteAllCache

func (o *WebAccelOp) DeleteAllCache(ctx context.Context, param *sacloud.WebAccelDeleteAllCacheRequest) error

DeleteAllCache is fake implementation

func (*WebAccelOp) DeleteCache

DeleteCache is fake implementation

func (*WebAccelOp) DeleteCertificate

func (o *WebAccelOp) DeleteCertificate(ctx context.Context, id types.ID) error

DeleteCertificate is fake implementation

func (*WebAccelOp) List

List is fake implementation

func (*WebAccelOp) Read

func (o *WebAccelOp) Read(ctx context.Context, id types.ID) (*sacloud.WebAccel, error)

Read is fake implementation

func (*WebAccelOp) ReadCertificate

func (o *WebAccelOp) ReadCertificate(ctx context.Context, id types.ID) (*sacloud.WebAccelCerts, error)

ReadCertificate is fake implementation

func (*WebAccelOp) UpdateCertificate

func (o *WebAccelOp) UpdateCertificate(ctx context.Context, id types.ID, param *sacloud.WebAccelCertRequest) (*sacloud.WebAccelCerts, error)

UpdateCertificate is fake implementation

type ZoneOp

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

ZoneOp is fake implementation of ZoneAPI interface

func (*ZoneOp) Find

func (o *ZoneOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.ZoneFindResult, error)

Find is fake implementation

func (*ZoneOp) Read

func (o *ZoneOp) Read(ctx context.Context, id types.ID) (*sacloud.Zone, error)

Read is fake implementation

Jump to

Keyboard shortcuts

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