stack

package module
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

README

github.com/qiniu/stack-go (七牛云主机服务 Go SDK)

LICENSE Build Status

Qiniu Logo

Installation

go get github.com/qiniu/stack-go

Examples

import (
  "github.com/qiniu/stack-go"
  "github.com/qiniu/stack-go/components/auth"
  "github.com/qiniu/stack-go/components/log"
)

func main() {
  s := stack.New(log.NewSimpleLog(), "https://api-qvm.qiniu.com", auth.NewCredential("xxx", "xxx"))

  resp, _ := s.ECS().ListInstances(&ecs.ListInstancesParams{...})

  ...
}

License

stack-go is released under the Apache 2.0 license. See LICENSE.txt

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Stack

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

Stack 七牛云主机服务 SDK

func New

func New(log log.Logger, endpoint string, credential *auth.Credential) *Stack

New 构造 SDK 实例

func (*Stack) BGPIP

func (s *Stack) BGPIP() *bgpip.BGPIP

BGPIP 获取 BGPIP 管理对象

func (*Stack) BSS

func (s *Stack) BSS() *bss.BSS

BSS 获取 BSS 管理对象

func (*Stack) ECS

func (s *Stack) ECS() *ecs.ECS

ECS 获取 ECS 管理对象

func (*Stack) VPC

func (s *Stack) VPC() *vpc.VPC

VPC 获取 VPC 管理对象

func (*Stack) Version

func (*Stack) Version() string

Version 获取当前 SDK 版本

Directories

Path Synopsis
components
bytes/seekable
Package seekable ...
Package seekable ...
log

Jump to

Keyboard shortcuts

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