Versions in this module Expand all Collapse all v0 v0.1.0 Apr 9, 2021 Changes in this version + func PaginateResp(gen Generator) ([]interface{}, error) + type Account struct + type AccountService interface + Get func() (*Account, error) + RateLimit func() (*RateLimit, error) + func NewAccountService(client *binarylane.Client) AccountService + type Action struct + type Actions []Action + type ActionsService interface + Get func(int) (*Action, error) + List func() (Actions, error) + func NewActionsService(client *binarylane.Client) ActionsService + type Balance struct + type BalanceService interface + Get func() (*Balance, error) + func NewBalanceService(client *binarylane.Client) BalanceService + type BillingHistory struct + type BillingHistoryService interface + List func() (*BillingHistory, error) + func NewBillingHistoryService(client *binarylane.Client) BillingHistoryService + type Domain struct + type DomainRecord struct + type DomainRecordEditRequest struct + Data string + Flags int + Name string + Port *int + Priority int + TTL int + Tag string + Type string + Weight int + type DomainRecords []DomainRecord + type Domains []Domain + type DomainsService interface + Create func(*binarylane.DomainCreateRequest) (*Domain, error) + CreateRecord func(string, *DomainRecordEditRequest) (*DomainRecord, error) + Delete func(string) error + DeleteRecord func(string, int) error + EditRecord func(string, int, *DomainRecordEditRequest) (*DomainRecord, error) + Get func(string) (*Domain, error) + List func() (Domains, error) + Record func(string, int) (*DomainRecord, error) + Records func(string) (DomainRecords, error) + func NewDomainsService(client *binarylane.Client) DomainsService + type Firewall struct + type Firewalls []Firewall + type FirewallsService interface + AddRules func(fID string, rr *binarylane.FirewallRulesRequest) error + AddServers func(fID string, sIDs ...int) error + AddTags func(fID string, tags ...string) error + Create func(fr *binarylane.FirewallRequest) (*Firewall, error) + Delete func(fID string) error + Get func(fID string) (*Firewall, error) + List func() (Firewalls, error) + ListByServer func(sID int) (Firewalls, error) + RemoveRules func(fID string, rr *binarylane.FirewallRulesRequest) error + RemoveServers func(fID string, sIDs ...int) error + RemoveTags func(fID string, tags ...string) error + Update func(fID string, fr *binarylane.FirewallRequest) (*Firewall, error) + func NewFirewallsService(client *binarylane.Client) FirewallsService + type FloatingIP struct + type FloatingIPActionsService interface + Assign func(ip string, serverID int) (*Action, error) + Get func(ip string, actionID int) (*Action, error) + List func(ip string, opt *binarylane.ListOptions) ([]Action, error) + Unassign func(ip string) (*Action, error) + func NewFloatingIPActionsService(client *binarylane.Client) FloatingIPActionsService + type FloatingIPs []FloatingIP + type FloatingIPsService interface + Create func(ficr *binarylane.FloatingIPCreateRequest) (*FloatingIP, error) + Delete func(ip string) error + Get func(ip string) (*FloatingIP, error) + List func() (FloatingIPs, error) + func NewFloatingIPsService(client *binarylane.Client) FloatingIPsService + type Generator func(*binarylane.ListOptions) ([]interface{}, *binarylane.Response, error) + type Image struct + type ImageActionsService interface + Convert func(int) (*Action, error) + Get func(int, int) (*Action, error) + Transfer func(int, *binarylane.ActionRequest) (*Action, error) + func NewImageActionsService(client *binarylane.Client) ImageActionsService + type Images []Image + type ImagesService interface + Create func(icr *binarylane.CustomImageCreateRequest) (*Image, error) + Delete func(id int) error + GetByID func(id int) (*Image, error) + GetBySlug func(slug string) (*Image, error) + List func(public bool) (Images, error) + ListApplication func(public bool) (Images, error) + ListDistribution func(public bool) (Images, error) + ListUser func(public bool) (Images, error) + Update func(id int, iur *binarylane.ImageUpdateRequest) (*Image, error) + func NewImagesService(client *binarylane.Client) ImagesService + type InterfaceType string + const InterfacePrivate + const InterfacePublic + type Invoice struct + type InvoiceItem struct + type InvoiceList struct + type InvoiceSummary struct + type InvoicesService interface + Get func(string) (*Invoice, error) + GetCSV func(string) ([]byte, error) + GetPDF func(string) ([]byte, error) + GetSummary func(string) (*InvoiceSummary, error) + List func() (*InvoiceList, error) + func NewInvoicesService(client *binarylane.Client) InvoicesService + type Kernel struct + type Kernels []Kernel + type KeysService interface + Create func(kcr *binarylane.KeyCreateRequest) (*SSHKey, error) + Delete func(id string) error + Get func(id string) (*SSHKey, error) + List func() (SSHKeys, error) + Update func(id string, kur *binarylane.KeyUpdateRequest) (*SSHKey, error) + func NewKeysService(client *binarylane.Client) KeysService + type LoadBalancer struct + type LoadBalancers []LoadBalancer + type LoadBalancersService interface + AddForwardingRules func(lbID int, rules ...binarylane.ForwardingRule) error + AddServers func(lbID int, sIDs ...int) error + Create func(lbr *binarylane.LoadBalancerRequest) (*LoadBalancer, error) + Delete func(lbID int) error + Get func(lbID int) (*LoadBalancer, error) + List func() (LoadBalancers, error) + RemoveForwardingRules func(lbID int, rules ...binarylane.ForwardingRule) error + RemoveServers func(lbID int, sIDs ...int) error + Update func(lbID int, lbr *binarylane.LoadBalancerRequest) (*LoadBalancer, error) + func NewLoadBalancersService(client *binarylane.Client) LoadBalancersService + type Project struct + type ProjectResource struct + type ProjectResources []ProjectResource + type Projects []Project + type ProjectsService interface + AssignResources func(projectUUID string, resources []string) (ProjectResources, error) + Create func(*binarylane.CreateProjectRequest) (*Project, error) + Delete func(projectUUID string) error + Get func(projectUUID string) (*Project, error) + GetDefault func() (*Project, error) + List func() (Projects, error) + ListResources func(projectUUID string) (ProjectResources, error) + Update func(projectUUID string, req *binarylane.UpdateProjectRequest) (*Project, error) + func NewProjectsService(client *binarylane.Client) ProjectsService + type RateLimit struct + type Region struct + type Regions []Region + type RegionsService interface + List func() (Regions, error) + func NewRegionsService(client *binarylane.Client) RegionsService + type SSHKey struct + type SSHKeys []SSHKey + type Server struct + type ServerActionsService interface + ChangeKernel func(int, int) (*Action, error) + DisableBackups func(int) (*Action, error) + DisableBackupsByTag func(string) (Actions, error) + EnableBackups func(int) (*Action, error) + EnableBackupsByTag func(string) (Actions, error) + EnableIPv6 func(int) (*Action, error) + EnableIPv6ByTag func(string) (Actions, error) + EnablePrivateNetworking func(int) (*Action, error) + EnablePrivateNetworkingByTag func(string) (Actions, error) + Get func(int, int) (*Action, error) + GetByURI func(string) (*Action, error) + PasswordReset func(int) (*Action, error) + PowerCycle func(int) (*Action, error) + PowerCycleByTag func(string) (Actions, error) + PowerOff func(int) (*Action, error) + PowerOffByTag func(string) (Actions, error) + PowerOn func(int) (*Action, error) + PowerOnByTag func(string) (Actions, error) + Reboot func(int) (*Action, error) + RebuildByImageID func(int, int) (*Action, error) + RebuildByImageSlug func(int, string) (*Action, error) + Rename func(int, string) (*Action, error) + Resize func(int, string, bool) (*Action, error) + Restore func(int, int) (*Action, error) + Shutdown func(int) (*Action, error) + ShutdownByTag func(string) (Actions, error) + Snapshot func(int, string) (*Action, error) + SnapshotByTag func(string, string) (Actions, error) + func NewServerActionsService(client *binarylane.Client) ServerActionsService + type ServerIPTable map[InterfaceType]string + type Servers []Server + type ServersService interface + Actions func(int) (Actions, error) + Backups func(int) (Images, error) + Create func(*binarylane.ServerCreateRequest, bool) (*Server, error) + CreateMultiple func(*binarylane.ServerMultiCreateRequest) (Servers, error) + Delete func(int) error + DeleteByTag func(string) error + Get func(int) (*Server, error) + Kernels func(int) (Kernels, error) + List func() (Servers, error) + ListByTag func(string) (Servers, error) + Neighbors func(int) (Servers, error) + Snapshots func(int) (Images, error) + func NewServersService(client *binarylane.Client) ServersService + type Size struct + type Sizes []Size + type SizesService interface + List func() (Sizes, error) + func NewSizesService(client *binarylane.Client) SizesService + type Snapshot struct + type Snapshots []Snapshot + type SnapshotsService interface + Delete func(string) error + Get func(string) (*Snapshot, error) + List func() (Snapshots, error) + ListServer func() (Snapshots, error) + ListVolume func() (Snapshots, error) + func NewSnapshotsService(client *binarylane.Client) SnapshotsService + type Tag struct + type Tags []Tag + type TagsService interface + Create func(*binarylane.TagCreateRequest) (*Tag, error) + Delete func(string) error + Get func(string) (*Tag, error) + List func() (Tags, error) + TagResources func(string, *binarylane.TagResourcesRequest) error + UntagResources func(string, *binarylane.UntagResourcesRequest) error + func NewTagsService(client *binarylane.Client) TagsService + type VPC struct + type VPCs []VPC + type VPCsService interface + Create func(vpcr *binarylane.VPCCreateRequest) (*VPC, error) + Delete func(id int) error + Get func(id int) (*VPC, error) + List func() (VPCs, error) + Update func(id int, vpcr *binarylane.VPCUpdateRequest) (*VPC, error) + func NewVPCsService(client *binarylane.Client) VPCsService