Documentation ¶
Index ¶
- Constants
- Variables
- func InitDataStore()
- func NewArchiveOp() sacloud.ArchiveAPI
- func NewAuthStatusOp() sacloud.AuthStatusAPI
- func NewAutoBackupOp() sacloud.AutoBackupAPI
- func NewBillOp() sacloud.BillAPI
- func NewBridgeOp() sacloud.BridgeAPI
- func NewCDROMOp() sacloud.CDROMAPI
- func NewContainerRegistryOp() sacloud.ContainerRegistryAPI
- func NewCouponOp() sacloud.CouponAPI
- func NewDNSOp() sacloud.DNSAPI
- func NewDatabaseOp() sacloud.DatabaseAPI
- func NewDiskOp() sacloud.DiskAPI
- func NewDiskPlanOp() sacloud.DiskPlanAPI
- func NewESMEOp() sacloud.ESMEAPI
- func NewGSLBOp() sacloud.GSLBAPI
- func NewIPAddressOp() sacloud.IPAddressAPI
- func NewIPv6AddrOp() sacloud.IPv6AddrAPI
- func NewIPv6NetOp() sacloud.IPv6NetAPI
- func NewIconOp() sacloud.IconAPI
- func NewInterfaceOp() sacloud.InterfaceAPI
- func NewInternetOp() sacloud.InternetAPI
- func NewInternetPlanOp() sacloud.InternetPlanAPI
- func NewLicenseInfoOp() sacloud.LicenseInfoAPI
- func NewLicenseOp() sacloud.LicenseAPI
- func NewLoadBalancerOp() sacloud.LoadBalancerAPI
- func NewLocalRouterOp() sacloud.LocalRouterAPI
- func NewMobileGatewayOp() sacloud.MobileGatewayAPI
- func NewNFSOp() sacloud.NFSAPI
- func NewNoteOp() sacloud.NoteAPI
- func NewPacketFilterOp() sacloud.PacketFilterAPI
- func NewPrivateHostOp() sacloud.PrivateHostAPI
- func NewPrivateHostPlanOp() sacloud.PrivateHostPlanAPI
- func NewProxyLBOp() sacloud.ProxyLBAPI
- func NewRegionOp() sacloud.RegionAPI
- func NewSIMOp() sacloud.SIMAPI
- func NewSSHKeyOp() sacloud.SSHKeyAPI
- func NewServerOp() sacloud.ServerAPI
- func NewServerPlanOp() sacloud.ServerPlanAPI
- func NewServiceClassOp() sacloud.ServiceClassAPI
- func NewSimpleMonitorOp() sacloud.SimpleMonitorAPI
- func NewSubnetOp() sacloud.SubnetAPI
- func NewSwitchOp() sacloud.SwitchAPI
- func NewVPCRouterOp() sacloud.VPCRouterAPI
- func NewWebAccelOp() sacloud.WebAccelAPI
- func NewZoneOp() sacloud.ZoneAPI
- func SwitchFactoryFuncToFake()
- type ArchiveOp
- func (o *ArchiveOp) CloseFTP(ctx context.Context, zone string, id types.ID) error
- func (o *ArchiveOp) Create(ctx context.Context, zone string, param *sacloud.ArchiveCreateRequest) (*sacloud.Archive, error)
- func (o *ArchiveOp) CreateBlank(ctx context.Context, zone string, param *sacloud.ArchiveCreateBlankRequest) (*sacloud.Archive, *sacloud.FTPServer, error)
- func (o *ArchiveOp) CreateFromShared(ctx context.Context, zone string, sourceArchiveID types.ID, zoneID types.ID, ...) (*sacloud.Archive, error)
- func (o *ArchiveOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *ArchiveOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.ArchiveFindResult, error)
- func (o *ArchiveOp) OpenFTP(ctx context.Context, zone string, id types.ID, ...) (*sacloud.FTPServer, error)
- func (o *ArchiveOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Archive, error)
- func (o *ArchiveOp) Share(ctx context.Context, zone string, id types.ID) (*sacloud.ArchiveShareInfo, error)
- func (o *ArchiveOp) Transfer(ctx context.Context, zone string, sourceArchiveID types.ID, ...) (*sacloud.Archive, error)
- func (o *ArchiveOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Archive, error)
- type AuthStatusOp
- type AutoBackupOp
- func (o *AutoBackupOp) Create(ctx context.Context, zone string, param *sacloud.AutoBackupCreateRequest) (*sacloud.AutoBackup, error)
- func (o *AutoBackupOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *AutoBackupOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.AutoBackupFindResult, error)
- func (o *AutoBackupOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.AutoBackup, error)
- func (o *AutoBackupOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.AutoBackup, error)
- func (o *AutoBackupOp) UpdateSettings(ctx context.Context, zone string, id types.ID, ...) (*sacloud.AutoBackup, error)
- type BillOp
- func (o *BillOp) ByContract(ctx context.Context, accountID types.ID) (*sacloud.BillByContractResult, error)
- func (o *BillOp) ByContractYear(ctx context.Context, accountID types.ID, year int) (*sacloud.BillByContractYearResult, error)
- func (o *BillOp) ByContractYearMonth(ctx context.Context, accountID types.ID, year int, month int) (*sacloud.BillByContractYearMonthResult, error)
- func (o *BillOp) Details(ctx context.Context, MemberCode string, id types.ID) (*sacloud.BillDetailsResult, error)
- func (o *BillOp) DetailsCSV(ctx context.Context, MemberCode string, id types.ID) (*sacloud.BillDetailCSV, error)
- func (o *BillOp) Read(ctx context.Context, id types.ID) (*sacloud.BillReadResult, error)
- type BridgeOp
- func (o *BridgeOp) Create(ctx context.Context, zone string, param *sacloud.BridgeCreateRequest) (*sacloud.Bridge, error)
- func (o *BridgeOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *BridgeOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.BridgeFindResult, error)
- func (o *BridgeOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Bridge, error)
- func (o *BridgeOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Bridge, error)
- type CDROMOp
- func (o *CDROMOp) CloseFTP(ctx context.Context, zone string, id types.ID) error
- func (o *CDROMOp) Create(ctx context.Context, zone string, param *sacloud.CDROMCreateRequest) (*sacloud.CDROM, *sacloud.FTPServer, error)
- func (o *CDROMOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *CDROMOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.CDROMFindResult, error)
- func (o *CDROMOp) OpenFTP(ctx context.Context, zone string, id types.ID, ...) (*sacloud.FTPServer, error)
- func (o *CDROMOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.CDROM, error)
- func (o *CDROMOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.CDROM, error)
- type ContainerRegistryOp
- func (o *ContainerRegistryOp) AddUser(ctx context.Context, id types.ID, ...) error
- func (o *ContainerRegistryOp) Create(ctx context.Context, param *sacloud.ContainerRegistryCreateRequest) (*sacloud.ContainerRegistry, error)
- func (o *ContainerRegistryOp) Delete(ctx context.Context, id types.ID) error
- func (o *ContainerRegistryOp) DeleteUser(ctx context.Context, id types.ID, username string) error
- func (o *ContainerRegistryOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.ContainerRegistryFindResult, error)
- func (o *ContainerRegistryOp) ListUsers(ctx context.Context, id types.ID) (*sacloud.ContainerRegistryUsers, error)
- func (o *ContainerRegistryOp) Read(ctx context.Context, id types.ID) (*sacloud.ContainerRegistry, error)
- func (o *ContainerRegistryOp) Update(ctx context.Context, id types.ID, ...) (*sacloud.ContainerRegistry, error)
- func (o *ContainerRegistryOp) UpdateSettings(ctx context.Context, id types.ID, ...) (*sacloud.ContainerRegistry, error)
- func (o *ContainerRegistryOp) UpdateUser(ctx context.Context, id types.ID, username string, ...) error
- type CouponOp
- type DNSOp
- func (o *DNSOp) Create(ctx context.Context, param *sacloud.DNSCreateRequest) (*sacloud.DNS, error)
- func (o *DNSOp) Delete(ctx context.Context, id types.ID) error
- func (o *DNSOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.DNSFindResult, error)
- func (o *DNSOp) Read(ctx context.Context, id types.ID) (*sacloud.DNS, error)
- func (o *DNSOp) Update(ctx context.Context, id types.ID, param *sacloud.DNSUpdateRequest) (*sacloud.DNS, error)
- func (o *DNSOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.DNSUpdateSettingsRequest) (*sacloud.DNS, error)
- type DatabaseOp
- func (o *DatabaseOp) Boot(ctx context.Context, zone string, id types.ID) error
- func (o *DatabaseOp) Config(ctx context.Context, zone string, id types.ID) error
- func (o *DatabaseOp) Create(ctx context.Context, zone string, param *sacloud.DatabaseCreateRequest) (*sacloud.Database, error)
- func (o *DatabaseOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *DatabaseOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.DatabaseFindResult, error)
- func (o *DatabaseOp) MonitorCPU(ctx context.Context, zone string, id types.ID, ...) (*sacloud.CPUTimeActivity, error)
- func (o *DatabaseOp) MonitorDatabase(ctx context.Context, zone string, id types.ID, ...) (*sacloud.DatabaseActivity, error)
- func (o *DatabaseOp) MonitorDisk(ctx context.Context, zone string, id types.ID, ...) (*sacloud.DiskActivity, error)
- func (o *DatabaseOp) MonitorInterface(ctx context.Context, zone string, id types.ID, ...) (*sacloud.InterfaceActivity, error)
- func (o *DatabaseOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Database, error)
- func (o *DatabaseOp) Reset(ctx context.Context, zone string, id types.ID) error
- func (o *DatabaseOp) Shutdown(ctx context.Context, zone string, id types.ID, ...) error
- func (o *DatabaseOp) Status(ctx context.Context, zone string, id types.ID) (*sacloud.DatabaseStatus, error)
- func (o *DatabaseOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Database, error)
- func (o *DatabaseOp) UpdateSettings(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Database, error)
- type DiskOp
- func (o *DiskOp) Config(ctx context.Context, zone string, id types.ID, edit *sacloud.DiskEditRequest) error
- func (o *DiskOp) ConnectToServer(ctx context.Context, zone string, id types.ID, serverID types.ID) error
- func (o *DiskOp) Create(ctx context.Context, zone string, param *sacloud.DiskCreateRequest, ...) (*sacloud.Disk, error)
- func (o *DiskOp) CreateWithConfig(ctx context.Context, zone string, createParam *sacloud.DiskCreateRequest, ...) (*sacloud.Disk, error)
- func (o *DiskOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *DiskOp) DisconnectFromServer(ctx context.Context, zone string, id types.ID) error
- func (o *DiskOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.DiskFindResult, error)
- func (o *DiskOp) Install(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Disk, error)
- func (o *DiskOp) Monitor(ctx context.Context, zone string, id types.ID, ...) (*sacloud.DiskActivity, error)
- func (o *DiskOp) MonitorDisk(ctx context.Context, zone string, id types.ID, ...) (*sacloud.DiskActivity, error)
- func (o *DiskOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Disk, error)
- func (o *DiskOp) ResizePartition(ctx context.Context, zone string, id types.ID, ...) error
- func (o *DiskOp) ToBlank(ctx context.Context, zone string, id types.ID) error
- func (o *DiskOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Disk, error)
- type DiskPlanOp
- type ESMEOp
- func (o *ESMEOp) Create(ctx context.Context, param *sacloud.ESMECreateRequest) (*sacloud.ESME, error)
- func (o *ESMEOp) Delete(ctx context.Context, id types.ID) error
- func (o *ESMEOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.ESMEFindResult, error)
- func (o *ESMEOp) Logs(ctx context.Context, id types.ID) ([]*sacloud.ESMELogs, error)
- func (o *ESMEOp) Read(ctx context.Context, id types.ID) (*sacloud.ESME, error)
- func (o *ESMEOp) SendMessageWithGeneratedOTP(ctx context.Context, id types.ID, ...) (*sacloud.ESMESendMessageResult, error)
- func (o *ESMEOp) SendMessageWithInputtedOTP(ctx context.Context, id types.ID, ...) (*sacloud.ESMESendMessageResult, error)
- func (o *ESMEOp) Update(ctx context.Context, id types.ID, param *sacloud.ESMEUpdateRequest) (*sacloud.ESME, error)
- type GSLBOp
- func (o *GSLBOp) Create(ctx context.Context, param *sacloud.GSLBCreateRequest) (*sacloud.GSLB, error)
- func (o *GSLBOp) Delete(ctx context.Context, id types.ID) error
- func (o *GSLBOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.GSLBFindResult, error)
- func (o *GSLBOp) Read(ctx context.Context, id types.ID) (*sacloud.GSLB, error)
- func (o *GSLBOp) Update(ctx context.Context, id types.ID, param *sacloud.GSLBUpdateRequest) (*sacloud.GSLB, error)
- func (o *GSLBOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.GSLBUpdateSettingsRequest) (*sacloud.GSLB, error)
- type IPAddressOp
- func (o *IPAddressOp) List(ctx context.Context, zone string) (*sacloud.IPAddressListResult, error)
- func (o *IPAddressOp) Read(ctx context.Context, zone string, ipAddress string) (*sacloud.IPAddress, error)
- func (o *IPAddressOp) UpdateHostName(ctx context.Context, zone string, ipAddress string, hostName string) (*sacloud.IPAddress, error)
- type IPv6AddrOp
- func (o *IPv6AddrOp) Create(ctx context.Context, zone string, param *sacloud.IPv6AddrCreateRequest) (*sacloud.IPv6Addr, error)
- func (o *IPv6AddrOp) Delete(ctx context.Context, zone string, ipv6addr string) error
- func (o *IPv6AddrOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.IPv6AddrFindResult, error)
- func (o *IPv6AddrOp) Read(ctx context.Context, zone string, ipv6addr string) (*sacloud.IPv6Addr, error)
- func (o *IPv6AddrOp) Update(ctx context.Context, zone string, ipv6addr string, ...) (*sacloud.IPv6Addr, error)
- type IPv6NetOp
- func (o *IPv6NetOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.IPv6NetFindResult, error)
- func (o *IPv6NetOp) List(ctx context.Context, zone string) (*sacloud.IPv6NetListResult, error)
- func (o *IPv6NetOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.IPv6Net, error)
- type IconOp
- func (o *IconOp) Create(ctx context.Context, param *sacloud.IconCreateRequest) (*sacloud.Icon, error)
- func (o *IconOp) Delete(ctx context.Context, id types.ID) error
- func (o *IconOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.IconFindResult, error)
- func (o *IconOp) Read(ctx context.Context, id types.ID) (*sacloud.Icon, error)
- func (o *IconOp) Update(ctx context.Context, id types.ID, param *sacloud.IconUpdateRequest) (*sacloud.Icon, error)
- type InMemoryStore
- func (s *InMemoryStore) Delete(resourceKey, zone string, id types.ID)
- func (s *InMemoryStore) Get(resourceKey, zone string, id types.ID) interface{}
- func (s *InMemoryStore) Init() error
- func (s *InMemoryStore) List(resourceKey, zone string) []interface{}
- func (s *InMemoryStore) NeedInitData() bool
- func (s *InMemoryStore) Put(resourceKey, zone string, id types.ID, value interface{})
- type InterfaceOp
- func (o *InterfaceOp) ConnectToPacketFilter(ctx context.Context, zone string, id types.ID, packetFilterID types.ID) error
- func (o *InterfaceOp) ConnectToSharedSegment(ctx context.Context, zone string, id types.ID) error
- func (o *InterfaceOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error
- func (o *InterfaceOp) Create(ctx context.Context, zone string, param *sacloud.InterfaceCreateRequest) (*sacloud.Interface, error)
- func (o *InterfaceOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *InterfaceOp) DisconnectFromPacketFilter(ctx context.Context, zone string, id types.ID) error
- func (o *InterfaceOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error
- func (o *InterfaceOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.InterfaceFindResult, error)
- func (o *InterfaceOp) Monitor(ctx context.Context, zone string, id types.ID, ...) (*sacloud.InterfaceActivity, error)
- func (o *InterfaceOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Interface, error)
- func (o *InterfaceOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Interface, error)
- type InternetOp
- func (o *InternetOp) AddSubnet(ctx context.Context, zone string, id types.ID, ...) (*sacloud.InternetSubnetOperationResult, error)
- func (o *InternetOp) Create(ctx context.Context, zone string, param *sacloud.InternetCreateRequest) (*sacloud.Internet, error)
- func (o *InternetOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *InternetOp) DeleteSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID) error
- func (o *InternetOp) DisableIPv6(ctx context.Context, zone string, id types.ID, ipv6netID types.ID) error
- func (o *InternetOp) EnableIPv6(ctx context.Context, zone string, id types.ID) (*sacloud.IPv6NetInfo, error)
- func (o *InternetOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.InternetFindResult, error)
- func (o *InternetOp) Monitor(ctx context.Context, zone string, id types.ID, ...) (*sacloud.RouterActivity, error)
- func (o *InternetOp) MonitorRouter(ctx context.Context, zone string, id types.ID, ...) (*sacloud.RouterActivity, error)
- func (o *InternetOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Internet, error)
- func (o *InternetOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Internet, error)
- func (o *InternetOp) UpdateBandWidth(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Internet, error)
- func (o *InternetOp) UpdateSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID, ...) (*sacloud.InternetSubnetOperationResult, error)
- type InternetPlanOp
- type JSONFileStore
- func (s *JSONFileStore) Delete(resourceKey, zone string, id types.ID)
- func (s *JSONFileStore) Get(resourceKey, zone string, id types.ID) interface{}
- func (s *JSONFileStore) Init() error
- func (s *JSONFileStore) List(resourceKey, zone string) []interface{}
- func (s *JSONFileStore) NeedInitData() bool
- func (s *JSONFileStore) Put(resourceKey, zone string, id types.ID, value interface{})
- type JSONFileStoreData
- type LicenseInfoOp
- type LicenseOp
- func (o *LicenseOp) Create(ctx context.Context, param *sacloud.LicenseCreateRequest) (*sacloud.License, error)
- func (o *LicenseOp) Delete(ctx context.Context, id types.ID) error
- func (o *LicenseOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.LicenseFindResult, error)
- func (o *LicenseOp) Read(ctx context.Context, id types.ID) (*sacloud.License, error)
- func (o *LicenseOp) Update(ctx context.Context, id types.ID, param *sacloud.LicenseUpdateRequest) (*sacloud.License, error)
- type LoadBalancerOp
- func (o *LoadBalancerOp) Boot(ctx context.Context, zone string, id types.ID) error
- func (o *LoadBalancerOp) Config(ctx context.Context, zone string, id types.ID) error
- func (o *LoadBalancerOp) Create(ctx context.Context, zone string, param *sacloud.LoadBalancerCreateRequest) (*sacloud.LoadBalancer, error)
- func (o *LoadBalancerOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *LoadBalancerOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.LoadBalancerFindResult, error)
- func (o *LoadBalancerOp) MonitorInterface(ctx context.Context, zone string, id types.ID, ...) (*sacloud.InterfaceActivity, error)
- func (o *LoadBalancerOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.LoadBalancer, error)
- func (o *LoadBalancerOp) Reset(ctx context.Context, zone string, id types.ID) error
- func (o *LoadBalancerOp) Shutdown(ctx context.Context, zone string, id types.ID, ...) error
- func (o *LoadBalancerOp) Status(ctx context.Context, zone string, id types.ID) (*sacloud.LoadBalancerStatusResult, error)
- func (o *LoadBalancerOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.LoadBalancer, error)
- func (o *LoadBalancerOp) UpdateSettings(ctx context.Context, zone string, id types.ID, ...) (*sacloud.LoadBalancer, error)
- type LocalRouterOp
- func (o *LocalRouterOp) Create(ctx context.Context, param *sacloud.LocalRouterCreateRequest) (*sacloud.LocalRouter, error)
- func (o *LocalRouterOp) Delete(ctx context.Context, id types.ID) error
- func (o *LocalRouterOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.LocalRouterFindResult, error)
- func (o *LocalRouterOp) HealthStatus(ctx context.Context, id types.ID) (*sacloud.LocalRouterHealth, error)
- func (o *LocalRouterOp) MonitorLocalRouter(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.LocalRouterActivity, error)
- func (o *LocalRouterOp) Read(ctx context.Context, id types.ID) (*sacloud.LocalRouter, error)
- func (o *LocalRouterOp) Update(ctx context.Context, id types.ID, param *sacloud.LocalRouterUpdateRequest) (*sacloud.LocalRouter, error)
- func (o *LocalRouterOp) UpdateSettings(ctx context.Context, id types.ID, ...) (*sacloud.LocalRouter, error)
- type MobileGatewayOp
- func (o *MobileGatewayOp) AddSIM(ctx context.Context, zone string, id types.ID, ...) error
- func (o *MobileGatewayOp) Boot(ctx context.Context, zone string, id types.ID) error
- func (o *MobileGatewayOp) Config(ctx context.Context, zone string, id types.ID) error
- func (o *MobileGatewayOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, switchID types.ID) error
- func (o *MobileGatewayOp) Create(ctx context.Context, zone string, param *sacloud.MobileGatewayCreateRequest) (*sacloud.MobileGateway, error)
- func (o *MobileGatewayOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *MobileGatewayOp) DeleteSIM(ctx context.Context, zone string, id types.ID, simID types.ID) error
- func (o *MobileGatewayOp) DeleteTrafficConfig(ctx context.Context, zone string, id types.ID) error
- func (o *MobileGatewayOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID) error
- func (o *MobileGatewayOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.MobileGatewayFindResult, error)
- func (o *MobileGatewayOp) GetDNS(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGatewayDNSSetting, error)
- func (o *MobileGatewayOp) GetSIMRoutes(ctx context.Context, zone string, id types.ID) (sacloud.MobileGatewaySIMRoutes, error)
- func (o *MobileGatewayOp) GetTrafficConfig(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGatewayTrafficControl, error)
- func (o *MobileGatewayOp) ListSIM(ctx context.Context, zone string, id types.ID) (sacloud.MobileGatewaySIMs, error)
- func (o *MobileGatewayOp) Logs(ctx context.Context, zone string, id types.ID) ([]*sacloud.MobileGatewaySIMLogs, error)
- func (o *MobileGatewayOp) MonitorInterface(ctx context.Context, zone string, id types.ID, index int, ...) (*sacloud.InterfaceActivity, error)
- func (o *MobileGatewayOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGateway, error)
- func (o *MobileGatewayOp) Reset(ctx context.Context, zone string, id types.ID) error
- func (o *MobileGatewayOp) SetDNS(ctx context.Context, zone string, id types.ID, ...) error
- func (o *MobileGatewayOp) SetSIMRoutes(ctx context.Context, zone string, id types.ID, ...) error
- func (o *MobileGatewayOp) SetTrafficConfig(ctx context.Context, zone string, id types.ID, ...) error
- func (o *MobileGatewayOp) Shutdown(ctx context.Context, zone string, id types.ID, ...) error
- func (o *MobileGatewayOp) TrafficStatus(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGatewayTrafficStatus, error)
- func (o *MobileGatewayOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.MobileGateway, error)
- func (o *MobileGatewayOp) UpdateSettings(ctx context.Context, zone string, id types.ID, ...) (*sacloud.MobileGateway, error)
- type NFSOp
- func (o *NFSOp) Boot(ctx context.Context, zone string, id types.ID) error
- func (o *NFSOp) Create(ctx context.Context, zone string, param *sacloud.NFSCreateRequest) (*sacloud.NFS, error)
- func (o *NFSOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *NFSOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.NFSFindResult, error)
- func (o *NFSOp) MonitorFreeDiskSize(ctx context.Context, zone string, id types.ID, ...) (*sacloud.FreeDiskSizeActivity, error)
- func (o *NFSOp) MonitorInterface(ctx context.Context, zone string, id types.ID, ...) (*sacloud.InterfaceActivity, error)
- func (o *NFSOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.NFS, error)
- func (o *NFSOp) Reset(ctx context.Context, zone string, id types.ID) error
- func (o *NFSOp) Shutdown(ctx context.Context, zone string, id types.ID, ...) error
- func (o *NFSOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.NFSUpdateRequest) (*sacloud.NFS, error)
- type NoteOp
- func (o *NoteOp) Create(ctx context.Context, param *sacloud.NoteCreateRequest) (*sacloud.Note, error)
- func (o *NoteOp) Delete(ctx context.Context, id types.ID) error
- func (o *NoteOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.NoteFindResult, error)
- func (o *NoteOp) Read(ctx context.Context, id types.ID) (*sacloud.Note, error)
- func (o *NoteOp) Update(ctx context.Context, id types.ID, param *sacloud.NoteUpdateRequest) (*sacloud.Note, error)
- type PacketFilterOp
- func (o *PacketFilterOp) Create(ctx context.Context, zone string, param *sacloud.PacketFilterCreateRequest) (*sacloud.PacketFilter, error)
- func (o *PacketFilterOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *PacketFilterOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.PacketFilterFindResult, error)
- func (o *PacketFilterOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.PacketFilter, error)
- func (o *PacketFilterOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.PacketFilter, error)
- type PrivateHostOp
- func (o *PrivateHostOp) Create(ctx context.Context, zone string, param *sacloud.PrivateHostCreateRequest) (*sacloud.PrivateHost, error)
- func (o *PrivateHostOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *PrivateHostOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.PrivateHostFindResult, error)
- func (o *PrivateHostOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.PrivateHost, error)
- func (o *PrivateHostOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.PrivateHost, error)
- type PrivateHostPlanOp
- type ProxyLBOp
- func (o *ProxyLBOp) ChangePlan(ctx context.Context, id types.ID, param *sacloud.ProxyLBChangePlanRequest) (*sacloud.ProxyLB, error)
- func (o *ProxyLBOp) Create(ctx context.Context, param *sacloud.ProxyLBCreateRequest) (*sacloud.ProxyLB, error)
- func (o *ProxyLBOp) Delete(ctx context.Context, id types.ID) error
- func (o *ProxyLBOp) DeleteCertificates(ctx context.Context, id types.ID) error
- func (o *ProxyLBOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.ProxyLBFindResult, error)
- func (o *ProxyLBOp) GetCertificates(ctx context.Context, id types.ID) (*sacloud.ProxyLBCertificates, error)
- func (o *ProxyLBOp) HealthStatus(ctx context.Context, id types.ID) (*sacloud.ProxyLBHealth, error)
- func (o *ProxyLBOp) MonitorConnection(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.ConnectionActivity, error)
- func (o *ProxyLBOp) Read(ctx context.Context, id types.ID) (*sacloud.ProxyLB, error)
- func (o *ProxyLBOp) RenewLetsEncryptCert(ctx context.Context, id types.ID) error
- func (o *ProxyLBOp) SetCertificates(ctx context.Context, id types.ID, param *sacloud.ProxyLBSetCertificatesRequest) (*sacloud.ProxyLBCertificates, error)
- func (o *ProxyLBOp) Update(ctx context.Context, id types.ID, param *sacloud.ProxyLBUpdateRequest) (*sacloud.ProxyLB, error)
- func (o *ProxyLBOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.ProxyLBUpdateSettingsRequest) (*sacloud.ProxyLB, error)
- type RegionOp
- type SIMOp
- func (o *SIMOp) Activate(ctx context.Context, id types.ID) error
- func (o *SIMOp) AssignIP(ctx context.Context, id types.ID, param *sacloud.SIMAssignIPRequest) error
- func (o *SIMOp) ClearIP(ctx context.Context, id types.ID) error
- func (o *SIMOp) Create(ctx context.Context, param *sacloud.SIMCreateRequest) (*sacloud.SIM, error)
- func (o *SIMOp) Deactivate(ctx context.Context, id types.ID) error
- func (o *SIMOp) Delete(ctx context.Context, id types.ID) error
- func (o *SIMOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.SIMFindResult, error)
- func (o *SIMOp) GetNetworkOperator(ctx context.Context, id types.ID) ([]*sacloud.SIMNetworkOperatorConfig, error)
- func (o *SIMOp) IMEILock(ctx context.Context, id types.ID, param *sacloud.SIMIMEILockRequest) error
- func (o *SIMOp) IMEIUnlock(ctx context.Context, id types.ID) error
- func (o *SIMOp) Logs(ctx context.Context, id types.ID) (*sacloud.SIMLogsResult, error)
- func (o *SIMOp) MonitorSIM(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.LinkActivity, error)
- func (o *SIMOp) Read(ctx context.Context, id types.ID) (*sacloud.SIM, error)
- func (o *SIMOp) SetNetworkOperator(ctx context.Context, id types.ID, configs []*sacloud.SIMNetworkOperatorConfig) error
- func (o *SIMOp) Status(ctx context.Context, id types.ID) (*sacloud.SIMInfo, error)
- func (o *SIMOp) Update(ctx context.Context, id types.ID, param *sacloud.SIMUpdateRequest) (*sacloud.SIM, error)
- type SSHKeyOp
- func (o *SSHKeyOp) Create(ctx context.Context, param *sacloud.SSHKeyCreateRequest) (*sacloud.SSHKey, error)
- func (o *SSHKeyOp) Delete(ctx context.Context, id types.ID) error
- func (o *SSHKeyOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.SSHKeyFindResult, error)
- func (o *SSHKeyOp) Generate(ctx context.Context, param *sacloud.SSHKeyGenerateRequest) (*sacloud.SSHKeyGenerated, error)
- func (o *SSHKeyOp) Read(ctx context.Context, id types.ID) (*sacloud.SSHKey, error)
- func (o *SSHKeyOp) Update(ctx context.Context, id types.ID, param *sacloud.SSHKeyUpdateRequest) (*sacloud.SSHKey, error)
- type ServerOp
- func (o *ServerOp) Boot(ctx context.Context, zone string, id types.ID) error
- func (o *ServerOp) ChangePlan(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Server, error)
- func (o *ServerOp) Create(ctx context.Context, zone string, param *sacloud.ServerCreateRequest) (*sacloud.Server, error)
- func (o *ServerOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *ServerOp) DeleteWithDisks(ctx context.Context, zone string, id types.ID, ...) error
- func (o *ServerOp) EjectCDROM(ctx context.Context, zone string, id types.ID, ...) error
- func (o *ServerOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.ServerFindResult, error)
- func (o *ServerOp) GetVNCProxy(ctx context.Context, zone string, id types.ID) (*sacloud.VNCProxyInfo, error)
- func (o *ServerOp) InsertCDROM(ctx context.Context, zone string, id types.ID, ...) error
- func (o *ServerOp) Monitor(ctx context.Context, zone string, id types.ID, ...) (*sacloud.CPUTimeActivity, error)
- func (o *ServerOp) MonitorCPU(ctx context.Context, zone string, id types.ID, ...) (*sacloud.CPUTimeActivity, error)
- func (o *ServerOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Server, error)
- func (o *ServerOp) Reset(ctx context.Context, zone string, id types.ID) error
- func (o *ServerOp) SendKey(ctx context.Context, zone string, id types.ID, ...) error
- func (o *ServerOp) Shutdown(ctx context.Context, zone string, id types.ID, ...) error
- func (o *ServerOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Server, error)
- type ServerPlanOp
- type ServiceClassOp
- type SimpleMonitorOp
- func (o *SimpleMonitorOp) Create(ctx context.Context, param *sacloud.SimpleMonitorCreateRequest) (*sacloud.SimpleMonitor, error)
- func (o *SimpleMonitorOp) Delete(ctx context.Context, id types.ID) error
- func (o *SimpleMonitorOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.SimpleMonitorFindResult, error)
- func (o *SimpleMonitorOp) HealthStatus(ctx context.Context, id types.ID) (*sacloud.SimpleMonitorHealthStatus, error)
- func (o *SimpleMonitorOp) MonitorResponseTime(ctx context.Context, id types.ID, condition *sacloud.MonitorCondition) (*sacloud.ResponseTimeSecActivity, error)
- func (o *SimpleMonitorOp) Read(ctx context.Context, id types.ID) (*sacloud.SimpleMonitor, error)
- func (o *SimpleMonitorOp) Update(ctx context.Context, id types.ID, param *sacloud.SimpleMonitorUpdateRequest) (*sacloud.SimpleMonitor, error)
- func (o *SimpleMonitorOp) UpdateSettings(ctx context.Context, id types.ID, ...) (*sacloud.SimpleMonitor, error)
- type Store
- type SubnetOp
- type SwitchOp
- func (o *SwitchOp) ConnectToBridge(ctx context.Context, zone string, id types.ID, bridgeID types.ID) error
- func (o *SwitchOp) Create(ctx context.Context, zone string, param *sacloud.SwitchCreateRequest) (*sacloud.Switch, error)
- func (o *SwitchOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *SwitchOp) DisconnectFromBridge(ctx context.Context, zone string, id types.ID) error
- func (o *SwitchOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.SwitchFindResult, error)
- func (o *SwitchOp) GetServers(ctx context.Context, zone string, id types.ID) (*sacloud.SwitchGetServersResult, error)
- func (o *SwitchOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.Switch, error)
- func (o *SwitchOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.Switch, error)
- type VPCRouterOp
- func (o *VPCRouterOp) Boot(ctx context.Context, zone string, id types.ID) error
- func (o *VPCRouterOp) Config(ctx context.Context, zone string, id types.ID) error
- func (o *VPCRouterOp) ConnectToSwitch(ctx context.Context, zone string, id types.ID, nicIndex int, switchID types.ID) error
- func (o *VPCRouterOp) Create(ctx context.Context, zone string, param *sacloud.VPCRouterCreateRequest) (*sacloud.VPCRouter, error)
- func (o *VPCRouterOp) Delete(ctx context.Context, zone string, id types.ID) error
- func (o *VPCRouterOp) DisconnectFromSwitch(ctx context.Context, zone string, id types.ID, nicIndex int) error
- func (o *VPCRouterOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.VPCRouterFindResult, error)
- func (o *VPCRouterOp) MonitorInterface(ctx context.Context, zone string, id types.ID, index int, ...) (*sacloud.InterfaceActivity, error)
- func (o *VPCRouterOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.VPCRouter, error)
- func (o *VPCRouterOp) Reset(ctx context.Context, zone string, id types.ID) error
- func (o *VPCRouterOp) Shutdown(ctx context.Context, zone string, id types.ID, ...) error
- func (o *VPCRouterOp) Status(ctx context.Context, zone string, id types.ID) (*sacloud.VPCRouterStatus, error)
- func (o *VPCRouterOp) Update(ctx context.Context, zone string, id types.ID, ...) (*sacloud.VPCRouter, error)
- func (o *VPCRouterOp) UpdateSettings(ctx context.Context, zone string, id types.ID, ...) (*sacloud.VPCRouter, error)
- type WebAccelOp
- func (o *WebAccelOp) CreateCertificate(ctx context.Context, id types.ID, param *sacloud.WebAccelCertRequest) (*sacloud.WebAccelCerts, error)
- func (o *WebAccelOp) DeleteAllCache(ctx context.Context, param *sacloud.WebAccelDeleteAllCacheRequest) error
- func (o *WebAccelOp) DeleteCache(ctx context.Context, param *sacloud.WebAccelDeleteCacheRequest) ([]*sacloud.WebAccelDeleteCacheResult, error)
- func (o *WebAccelOp) DeleteCertificate(ctx context.Context, id types.ID) error
- func (o *WebAccelOp) List(ctx context.Context) (*sacloud.WebAccelListResult, error)
- func (o *WebAccelOp) Read(ctx context.Context, id types.ID) (*sacloud.WebAccel, error)
- func (o *WebAccelOp) ReadCertificate(ctx context.Context, id types.ID) (*sacloud.WebAccelCerts, error)
- func (o *WebAccelOp) UpdateCertificate(ctx context.Context, id types.ID, param *sacloud.WebAccelCertRequest) (*sacloud.WebAccelCerts, error)
- type ZoneOp
Constants ¶
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 ¶
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" )
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 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 NewContainerRegistryOp ¶
func NewContainerRegistryOp() sacloud.ContainerRegistryAPI
NewContainerRegistryOp creates new ContainerRegistryOp instance
func NewDatabaseOp ¶
func NewDatabaseOp() sacloud.DatabaseAPI
NewDatabaseOp creates new DatabaseOp instance
func NewDiskPlanOp ¶
func NewDiskPlanOp() sacloud.DiskPlanAPI
NewDiskPlanOp creates new DiskPlanOp 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 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 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 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 NewVPCRouterOp ¶
func NewVPCRouterOp() sacloud.VPCRouterAPI
NewVPCRouterOp creates new VPCRouterOp instance
func NewWebAccelOp ¶
func NewWebAccelOp() sacloud.WebAccelAPI
NewWebAccelOp creates new WebAccelOp 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) Create ¶
func (o *ArchiveOp) Create(ctx context.Context, zone string, param *sacloud.ArchiveCreateRequest) (*sacloud.Archive, error)
Create is fake implementation
func (*ArchiveOp) CreateBlank ¶
func (o *ArchiveOp) CreateBlank(ctx context.Context, zone string, param *sacloud.ArchiveCreateBlankRequest) (*sacloud.Archive, *sacloud.FTPServer, error)
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) 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) 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
type AuthStatusOp ¶
type AuthStatusOp struct {
// contains filtered or unexported fields
}
AuthStatusOp is fake implementation of AuthStatusAPI interface
func (*AuthStatusOp) Read ¶
func (o *AuthStatusOp) Read(ctx context.Context) (*sacloud.AuthStatus, error)
Read is fake implementation
type AutoBackupOp ¶
type AutoBackupOp struct {
// contains filtered or unexported fields
}
AutoBackupOp is fake implementation of AutoBackupAPI interface
func (*AutoBackupOp) Create ¶
func (o *AutoBackupOp) Create(ctx context.Context, zone string, param *sacloud.AutoBackupCreateRequest) (*sacloud.AutoBackup, error)
Create is fake implementation
func (*AutoBackupOp) Find ¶
func (o *AutoBackupOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.AutoBackupFindResult, error)
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 ¶
func (o *AutoBackupOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.AutoBackupUpdateRequest) (*sacloud.AutoBackup, error)
Update is fake implementation
func (*AutoBackupOp) UpdateSettings ¶
func (o *AutoBackupOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *sacloud.AutoBackupUpdateSettingsRequest) (*sacloud.AutoBackup, error)
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
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) Find ¶
func (o *BridgeOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.BridgeFindResult, error)
Find is fake implementation
type CDROMOp ¶
type CDROMOp struct {
// contains filtered or unexported fields
}
CDROMOp is fake implementation of CDROMAPI interface
func (*CDROMOp) Create ¶
func (o *CDROMOp) Create(ctx context.Context, zone string, param *sacloud.CDROMCreateRequest) (*sacloud.CDROM, *sacloud.FTPServer, error)
Create 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
type ContainerRegistryOp ¶
type ContainerRegistryOp struct {
// contains filtered or unexported fields
}
ContainerRegistryOp is fake implementation of ContainerRegistryAPI interface
func (*ContainerRegistryOp) AddUser ¶
func (o *ContainerRegistryOp) AddUser(ctx context.Context, id types.ID, param *sacloud.ContainerRegistryUserCreateRequest) error
AddUser is fake implementation
func (*ContainerRegistryOp) Create ¶
func (o *ContainerRegistryOp) Create(ctx context.Context, param *sacloud.ContainerRegistryCreateRequest) (*sacloud.ContainerRegistry, error)
Create is fake implementation
func (*ContainerRegistryOp) DeleteUser ¶
DeleteUser is fake implementation
func (*ContainerRegistryOp) Find ¶
func (o *ContainerRegistryOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.ContainerRegistryFindResult, error)
Find is fake implementation
func (*ContainerRegistryOp) ListUsers ¶
func (o *ContainerRegistryOp) ListUsers(ctx context.Context, id types.ID) (*sacloud.ContainerRegistryUsers, error)
ListUsers is fake implementation
func (*ContainerRegistryOp) Read ¶
func (o *ContainerRegistryOp) Read(ctx context.Context, id types.ID) (*sacloud.ContainerRegistry, error)
Read is fake implementation
func (*ContainerRegistryOp) Update ¶
func (o *ContainerRegistryOp) Update(ctx context.Context, id types.ID, param *sacloud.ContainerRegistryUpdateRequest) (*sacloud.ContainerRegistry, error)
Update is fake implementation
func (*ContainerRegistryOp) UpdateSettings ¶
func (o *ContainerRegistryOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.ContainerRegistryUpdateSettingsRequest) (*sacloud.ContainerRegistry, error)
UpdateSettings is fake implementation
func (*ContainerRegistryOp) UpdateUser ¶
func (o *ContainerRegistryOp) UpdateUser(ctx context.Context, id types.ID, username string, param *sacloud.ContainerRegistryUserUpdateRequest) error
UpdateUser is fake implementation
type CouponOp ¶
type CouponOp struct {
// contains filtered or unexported fields
}
CouponOp is fake implementation of CouponAPI interface
type DNSOp ¶
type DNSOp struct {
// contains filtered or unexported fields
}
DNSOp is fake implementation of DNSAPI interface
func (*DNSOp) Find ¶
func (o *DNSOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.DNSFindResult, error)
Find is fake implementation
type DatabaseOp ¶
type DatabaseOp struct {
// contains filtered or unexported fields
}
DatabaseOp is fake implementation of DatabaseAPI interface
func (*DatabaseOp) Create ¶
func (o *DatabaseOp) Create(ctx context.Context, zone string, param *sacloud.DatabaseCreateRequest) (*sacloud.Database, error)
Create is fake implementation
func (*DatabaseOp) Find ¶
func (o *DatabaseOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.DatabaseFindResult, error)
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) 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 ¶
func (o *DatabaseOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.DatabaseUpdateRequest) (*sacloud.Database, error)
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) DisconnectFromServer ¶
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) ResizePartition ¶
func (o *DiskOp) ResizePartition(ctx context.Context, zone string, id types.ID, param *sacloud.DiskResizePartitionRequest) error
ResizePartition is fake implementation
type DiskPlanOp ¶
type DiskPlanOp struct {
// contains filtered or unexported fields
}
DiskPlanOp is fake implementation of DiskPlanAPI interface
func (*DiskPlanOp) Find ¶
func (o *DiskPlanOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.DiskPlanFindResult, error)
Find 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) 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) 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 (o *ESMEOp) SendMessageWithInputtedOTP(ctx context.Context, id types.ID, param *sacloud.ESMESendMessageWithInputtedOTPRequest) (*sacloud.ESMESendMessageResult, error)
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) Find ¶
func (o *GSLBOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.GSLBFindResult, error)
Find is fake implementation
type IPAddressOp ¶
type IPAddressOp struct {
// contains filtered or unexported fields
}
IPAddressOp is fake implementation of IPAddressAPI interface
func (*IPAddressOp) List ¶
func (o *IPAddressOp) List(ctx context.Context, zone string) (*sacloud.IPAddressListResult, error)
List is fake implementation
type IPv6AddrOp ¶
type IPv6AddrOp struct {
// contains filtered or unexported fields
}
IPv6AddrOp is fake implementation of IPv6AddrAPI interface
func (*IPv6AddrOp) Create ¶
func (o *IPv6AddrOp) Create(ctx context.Context, zone string, param *sacloud.IPv6AddrCreateRequest) (*sacloud.IPv6Addr, error)
Create is fake implementation
func (*IPv6AddrOp) Find ¶
func (o *IPv6AddrOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.IPv6AddrFindResult, error)
Find 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
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) Find ¶
func (o *IconOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.IconFindResult, error)
Find is fake implementation
type InMemoryStore ¶
type InMemoryStore struct {
// contains filtered or unexported fields
}
InMemoryStore データをメモリ上に保存するためのデータストア
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) List ¶
func (s *InMemoryStore) List(resourceKey, zone string) []interface{}
List .
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 ¶
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 ¶
func (o *InterfaceOp) Create(ctx context.Context, zone string, param *sacloud.InterfaceCreateRequest) (*sacloud.Interface, error)
Create 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 ¶
DisconnectFromSwitch is fake implementation
func (*InterfaceOp) Find ¶
func (o *InterfaceOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.InterfaceFindResult, error)
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
type InternetOp ¶
type InternetOp struct {
// contains filtered or unexported fields
}
InternetOp is fake implementation of InternetAPI interface
func (*InternetOp) AddSubnet ¶
func (o *InternetOp) AddSubnet(ctx context.Context, zone string, id types.ID, param *sacloud.InternetAddSubnetRequest) (*sacloud.InternetSubnetOperationResult, error)
AddSubnet is fake implementation
func (*InternetOp) Create ¶
func (o *InternetOp) Create(ctx context.Context, zone string, param *sacloud.InternetCreateRequest) (*sacloud.Internet, error)
Create 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 ¶
func (o *InternetOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.InternetFindResult, error)
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) Update ¶
func (o *InternetOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.InternetUpdateRequest) (*sacloud.Internet, error)
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 ¶
func (o *InternetOp) UpdateSubnet(ctx context.Context, zone string, id types.ID, subnetID types.ID, param *sacloud.InternetUpdateSubnetRequest) (*sacloud.InternetSubnetOperationResult, error)
UpdateSubnet is fake implementation
type InternetPlanOp ¶
type InternetPlanOp struct {
// contains filtered or unexported fields
}
InternetPlanOp is fake implementation of InternetPlanAPI interface
func (*InternetPlanOp) Find ¶
func (o *InternetPlanOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.InternetPlanFindResult, error)
Find is fake implementation
type JSONFileStore ¶
type JSONFileStore struct { Path string Ctx context.Context NoInitData bool // contains filtered or unexported fields }
JSONFileStore .
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) List ¶
func (s *JSONFileStore) List(resourceKey, zone string) []interface{}
List .
type JSONFileStoreData ¶
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 ¶
func (o *LicenseInfoOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.LicenseInfoFindResult, error)
Find is fake implementation
func (*LicenseInfoOp) Read ¶
func (o *LicenseInfoOp) Read(ctx context.Context, id types.ID) (*sacloud.LicenseInfo, error)
Read is fake implementation
type LicenseOp ¶
type LicenseOp struct {
// contains filtered or unexported fields
}
LicenseOp is fake implementation of LicenseAPI interface
func (*LicenseOp) Create ¶
func (o *LicenseOp) Create(ctx context.Context, param *sacloud.LicenseCreateRequest) (*sacloud.License, error)
Create is fake implementation
func (*LicenseOp) Find ¶
func (o *LicenseOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.LicenseFindResult, error)
Find is fake implementation
type LoadBalancerOp ¶
type LoadBalancerOp struct {
// contains filtered or unexported fields
}
LoadBalancerOp is fake implementation of LoadBalancerAPI interface
func (*LoadBalancerOp) Create ¶
func (o *LoadBalancerOp) Create(ctx context.Context, zone string, param *sacloud.LoadBalancerCreateRequest) (*sacloud.LoadBalancer, error)
Create is fake implementation
func (*LoadBalancerOp) Find ¶
func (o *LoadBalancerOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.LoadBalancerFindResult, error)
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) Shutdown ¶
func (o *LoadBalancerOp) Shutdown(ctx context.Context, zone string, id types.ID, shutdownOption *sacloud.ShutdownOption) error
Shutdown is fake implementation
func (*LoadBalancerOp) Status ¶
func (o *LoadBalancerOp) Status(ctx context.Context, zone string, id types.ID) (*sacloud.LoadBalancerStatusResult, error)
Status is fake implementation
func (*LoadBalancerOp) Update ¶
func (o *LoadBalancerOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.LoadBalancerUpdateRequest) (*sacloud.LoadBalancer, error)
Update is fake implementation
func (*LoadBalancerOp) UpdateSettings ¶
func (o *LoadBalancerOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *sacloud.LoadBalancerUpdateSettingsRequest) (*sacloud.LoadBalancer, error)
UpdateSettings is fake implementation
type LocalRouterOp ¶
type LocalRouterOp struct {
// contains filtered or unexported fields
}
LocalRouterOp is fake implementation of LocalRouterAPI interface
func (*LocalRouterOp) Create ¶
func (o *LocalRouterOp) Create(ctx context.Context, param *sacloud.LocalRouterCreateRequest) (*sacloud.LocalRouter, error)
Create is fake implementation
func (*LocalRouterOp) Find ¶
func (o *LocalRouterOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.LocalRouterFindResult, error)
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 ¶
func (o *LocalRouterOp) Read(ctx context.Context, id types.ID) (*sacloud.LocalRouter, error)
Read is fake implementation
func (*LocalRouterOp) Update ¶
func (o *LocalRouterOp) Update(ctx context.Context, id types.ID, param *sacloud.LocalRouterUpdateRequest) (*sacloud.LocalRouter, error)
Update is fake implementation
func (*LocalRouterOp) UpdateSettings ¶
func (o *LocalRouterOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.LocalRouterUpdateSettingsRequest) (*sacloud.LocalRouter, error)
UpdateSettings is fake implementation
type MobileGatewayOp ¶
type MobileGatewayOp struct {
// contains filtered or unexported fields
}
MobileGatewayOp is fake implementation of MobileGatewayAPI interface
func (*MobileGatewayOp) AddSIM ¶
func (o *MobileGatewayOp) AddSIM(ctx context.Context, zone string, id types.ID, param *sacloud.MobileGatewayAddSIMRequest) error
AddSIM 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 ¶
func (o *MobileGatewayOp) Create(ctx context.Context, zone string, param *sacloud.MobileGatewayCreateRequest) (*sacloud.MobileGateway, error)
Create 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 ¶
DeleteTrafficConfig is fake implementation
func (*MobileGatewayOp) DisconnectFromSwitch ¶
DisconnectFromSwitch is fake implementation
func (*MobileGatewayOp) Find ¶
func (o *MobileGatewayOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.MobileGatewayFindResult, error)
Find is fake implementation
func (*MobileGatewayOp) GetDNS ¶
func (o *MobileGatewayOp) GetDNS(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGatewayDNSSetting, error)
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 ¶
func (o *MobileGatewayOp) ListSIM(ctx context.Context, zone string, id types.ID) (sacloud.MobileGatewaySIMs, error)
ListSIM is fake implementation
func (*MobileGatewayOp) Logs ¶
func (o *MobileGatewayOp) Logs(ctx context.Context, zone string, id types.ID) ([]*sacloud.MobileGatewaySIMLogs, error)
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 ¶
func (o *MobileGatewayOp) Read(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGateway, error)
Read is fake implementation
func (*MobileGatewayOp) SetDNS ¶
func (o *MobileGatewayOp) SetDNS(ctx context.Context, zone string, id types.ID, param *sacloud.MobileGatewayDNSSetting) error
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 ¶
func (o *MobileGatewayOp) TrafficStatus(ctx context.Context, zone string, id types.ID) (*sacloud.MobileGatewayTrafficStatus, error)
TrafficStatus is fake implementation
func (*MobileGatewayOp) Update ¶
func (o *MobileGatewayOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.MobileGatewayUpdateRequest) (*sacloud.MobileGateway, error)
Update is fake implementation
func (*MobileGatewayOp) UpdateSettings ¶
func (o *MobileGatewayOp) UpdateSettings(ctx context.Context, zone string, id types.ID, param *sacloud.MobileGatewayUpdateSettingsRequest) (*sacloud.MobileGateway, error)
UpdateSettings is fake implementation
type NFSOp ¶
type NFSOp struct {
// contains filtered or unexported fields
}
NFSOp is fake implementation of NFSAPI interface
func (*NFSOp) Create ¶
func (o *NFSOp) Create(ctx context.Context, zone string, param *sacloud.NFSCreateRequest) (*sacloud.NFS, error)
Create 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
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) Find ¶
func (o *NoteOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.NoteFindResult, error)
Find is fake implementation
type PacketFilterOp ¶
type PacketFilterOp struct {
// contains filtered or unexported fields
}
PacketFilterOp is fake implementation of PacketFilterAPI interface
func (*PacketFilterOp) Create ¶
func (o *PacketFilterOp) Create(ctx context.Context, zone string, param *sacloud.PacketFilterCreateRequest) (*sacloud.PacketFilter, error)
Create is fake implementation
func (*PacketFilterOp) Find ¶
func (o *PacketFilterOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.PacketFilterFindResult, error)
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 ¶
func (o *PacketFilterOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.PacketFilterUpdateRequest, hash string) (*sacloud.PacketFilter, error)
Update is fake implementation
type PrivateHostOp ¶
type PrivateHostOp struct {
// contains filtered or unexported fields
}
PrivateHostOp is fake implementation of PrivateHostAPI interface
func (*PrivateHostOp) Create ¶
func (o *PrivateHostOp) Create(ctx context.Context, zone string, param *sacloud.PrivateHostCreateRequest) (*sacloud.PrivateHost, error)
Create is fake implementation
func (*PrivateHostOp) Find ¶
func (o *PrivateHostOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.PrivateHostFindResult, error)
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 ¶
func (o *PrivateHostOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.PrivateHostUpdateRequest) (*sacloud.PrivateHost, error)
Update is fake implementation
type PrivateHostPlanOp ¶
type PrivateHostPlanOp struct {
// contains filtered or unexported fields
}
PrivateHostPlanOp is fake implementation of PrivateHostPlanAPI interface
func (*PrivateHostPlanOp) Find ¶
func (o *PrivateHostPlanOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.PrivateHostPlanFindResult, error)
Find is fake implementation
type ProxyLBOp ¶
type ProxyLBOp struct {
// contains filtered or unexported fields
}
ProxyLBOp is fake implementation of ProxyLBAPI interface
func (*ProxyLBOp) ChangePlan ¶
func (o *ProxyLBOp) ChangePlan(ctx context.Context, id types.ID, param *sacloud.ProxyLBChangePlanRequest) (*sacloud.ProxyLB, error)
ChangePlan is fake implementation
func (*ProxyLBOp) Create ¶
func (o *ProxyLBOp) Create(ctx context.Context, param *sacloud.ProxyLBCreateRequest) (*sacloud.ProxyLB, error)
Create is fake implementation
func (*ProxyLBOp) DeleteCertificates ¶
DeleteCertificates is fake implementation
func (*ProxyLBOp) Find ¶
func (o *ProxyLBOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.ProxyLBFindResult, error)
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 ¶
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) RenewLetsEncryptCert ¶
RenewLetsEncryptCert is fake implementation
func (*ProxyLBOp) SetCertificates ¶
func (o *ProxyLBOp) SetCertificates(ctx context.Context, id types.ID, param *sacloud.ProxyLBSetCertificatesRequest) (*sacloud.ProxyLBCertificates, error)
SetCertificates is fake implementation
type RegionOp ¶
type RegionOp struct {
// contains filtered or unexported fields
}
RegionOp is fake implementation of RegionAPI interface
func (*RegionOp) Find ¶
func (o *RegionOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.RegionFindResult, error)
Find is fake implementation
type SIMOp ¶
type SIMOp struct {
// contains filtered or unexported fields
}
SIMOp is fake implementation of SIMAPI interface
func (*SIMOp) Deactivate ¶
Deactivate 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) IMEIUnlock ¶
IMEIUnlock 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) SetNetworkOperator ¶
func (o *SIMOp) SetNetworkOperator(ctx context.Context, id types.ID, configs []*sacloud.SIMNetworkOperatorConfig) error
SetNetworkOperator is fake implementation
type SSHKeyOp ¶
type SSHKeyOp struct {
// contains filtered or unexported fields
}
SSHKeyOp is fake implementation of SSHKeyAPI interface
func (*SSHKeyOp) Create ¶
func (o *SSHKeyOp) Create(ctx context.Context, param *sacloud.SSHKeyCreateRequest) (*sacloud.SSHKey, error)
Create is fake implementation
func (*SSHKeyOp) Find ¶
func (o *SSHKeyOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.SSHKeyFindResult, error)
Find is fake implementation
func (*SSHKeyOp) Generate ¶
func (o *SSHKeyOp) Generate(ctx context.Context, param *sacloud.SSHKeyGenerateRequest) (*sacloud.SSHKeyGenerated, error)
Generate is fake implementation
type ServerOp ¶
type ServerOp struct {
// contains filtered or unexported fields
}
ServerOp is fake implementation of ServerAPI interface
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) 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) SendKey ¶
func (o *ServerOp) SendKey(ctx context.Context, zone string, id types.ID, keyboardParam *sacloud.SendKeyRequest) error
SendKey is fake implementation
type ServerPlanOp ¶
type ServerPlanOp struct {
// contains filtered or unexported fields
}
ServerPlanOp is fake implementation of ServerPlanAPI interface
func (*ServerPlanOp) Find ¶
func (o *ServerPlanOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.ServerPlanFindResult, error)
Find is fake implementation
type ServiceClassOp ¶
type ServiceClassOp struct {
// contains filtered or unexported fields
}
ServiceClassOp is fake implementation of ServiceClassAPI interface
func (*ServiceClassOp) Find ¶
func (o *ServiceClassOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.ServiceClassFindResult, error)
Find is fake implementation
type SimpleMonitorOp ¶
type SimpleMonitorOp struct {
// contains filtered or unexported fields
}
SimpleMonitorOp is fake implementation of SimpleMonitorAPI interface
func (*SimpleMonitorOp) Create ¶
func (o *SimpleMonitorOp) Create(ctx context.Context, param *sacloud.SimpleMonitorCreateRequest) (*sacloud.SimpleMonitor, error)
Create is fake implementation
func (*SimpleMonitorOp) Find ¶
func (o *SimpleMonitorOp) Find(ctx context.Context, conditions *sacloud.FindCondition) (*sacloud.SimpleMonitorFindResult, error)
Find is fake implementation
func (*SimpleMonitorOp) HealthStatus ¶
func (o *SimpleMonitorOp) HealthStatus(ctx context.Context, id types.ID) (*sacloud.SimpleMonitorHealthStatus, error)
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 ¶
func (o *SimpleMonitorOp) Read(ctx context.Context, id types.ID) (*sacloud.SimpleMonitor, error)
Read is fake implementation
func (*SimpleMonitorOp) Update ¶
func (o *SimpleMonitorOp) Update(ctx context.Context, id types.ID, param *sacloud.SimpleMonitorUpdateRequest) (*sacloud.SimpleMonitor, error)
Update is fake implementation
func (*SimpleMonitorOp) UpdateSettings ¶
func (o *SimpleMonitorOp) UpdateSettings(ctx context.Context, id types.ID, param *sacloud.SimpleMonitorUpdateSettingsRequest) (*sacloud.SimpleMonitor, error)
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
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) DisconnectFromBridge ¶
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
type VPCRouterOp ¶
type VPCRouterOp struct {
// contains filtered or unexported fields
}
VPCRouterOp is fake implementation of VPCRouterAPI interface
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 ¶
func (o *VPCRouterOp) Create(ctx context.Context, zone string, param *sacloud.VPCRouterCreateRequest) (*sacloud.VPCRouter, error)
Create 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 ¶
func (o *VPCRouterOp) Find(ctx context.Context, zone string, conditions *sacloud.FindCondition) (*sacloud.VPCRouterFindResult, error)
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) 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 ¶
func (o *VPCRouterOp) Update(ctx context.Context, zone string, id types.ID, param *sacloud.VPCRouterUpdateRequest) (*sacloud.VPCRouter, error)
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 ¶
func (o *WebAccelOp) DeleteCache(ctx context.Context, param *sacloud.WebAccelDeleteCacheRequest) ([]*sacloud.WebAccelDeleteCacheResult, error)
DeleteCache is fake implementation
func (*WebAccelOp) DeleteCertificate ¶
DeleteCertificate is fake implementation
func (*WebAccelOp) List ¶
func (o *WebAccelOp) List(ctx context.Context) (*sacloud.WebAccelListResult, error)
List 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
Source Files ¶
- functions.go
- in_memory_store.go
- init.go
- initial_values.go
- json_file_store.go
- json_file_store_watcher.go
- ops_archive.go
- ops_auth_status.go
- ops_auto_backup.go
- ops_bill.go
- ops_bridge.go
- ops_cdrom.go
- ops_container_registry.go
- ops_coupon.go
- ops_database.go
- ops_disk.go
- ops_disk_plan.go
- ops_dns.go
- ops_esme.go
- ops_gslb.go
- ops_icon.go
- ops_interface.go
- ops_internet.go
- ops_internet_plan.go
- ops_ip_address.go
- ops_ipv6addr.go
- ops_ipv6net.go
- ops_license.go
- ops_license_info.go
- ops_load_balancer.go
- ops_local_router.go
- ops_mobile_gateway.go
- ops_nfs.go
- ops_note.go
- ops_packet_filter.go
- ops_private_host.go
- ops_private_host_plan.go
- ops_proxy_lb.go
- ops_region.go
- ops_server.go
- ops_server_plan.go
- ops_service_class.go
- ops_sim.go
- ops_simple_monitor.go
- ops_ssh_key.go
- ops_subnet.go
- ops_switch.go
- ops_vpc_router.go
- ops_web_accel.go
- ops_zone.go
- pool.go
- store.go
- timer.go
- zz_api_ops.go
- zz_init_archive.go
- zz_init_cdrom.go
- zz_resources.go
- zz_store.go