Documentation ¶
Index ¶
Constants ¶
View Source
const ( SLSDefaultEndpoint = "log.aliyuncs.com" SLSAPIVersion = "0.6.0" Version = "0.0.1" )
View Source
const HeaderSLSPrefix1 = "x-log-"
View Source
const HeaderSLSPrefix2 = "x-acs-"
Variables ¶
Functions ¶
func CreateSignature ¶
CreateSignature creates signature for string following Aliyun rules
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClientForAssumeRole ¶
func NewClientWithEndpoint ¶
func (*Client) ListProject ¶
func (client *Client) ListProject(r ListProjectRequest) (*ListProjectResponse, error)
func (*Client) SetTransport ¶
func (client *Client) SetTransport(transport http.RoundTripper)
SetTransport sets transport to the http client
type Driver ¶
type Driver struct { Cred *credentials.StsTokenCredential Region string }
func (*Driver) ListProjects ¶
type Error ¶
type ListProjectRequest ¶
type ListProjectRequest struct { Offset int32 `json:"offset,omitempty" xml:"offset,omitempty"` ProjectName string `json:"projectName,omitempty" xml:"projectName,omitempty"` Size int32 `json:"size,omitempty" xml:"size,omitempty"` }
func (ListProjectRequest) Map ¶
func (r ListProjectRequest) Map() map[string]string
type ListProjectResponse ¶
type Project ¶
type Project struct { CreateTime *string `json:"createTime,omitempty" xml:"createTime,omitempty"` Description *string `json:"description,omitempty" xml:"description,omitempty"` LastModifyTime *string `json:"lastModifyTime,omitempty" xml:"lastModifyTime,omitempty"` Owner *string `json:"owner,omitempty" xml:"owner,omitempty"` ProjectName *string `json:"projectName,omitempty" xml:"projectName,omitempty"` Region *string `json:"region,omitempty" xml:"region,omitempty"` ResourceGroupId *string `json:"resourceGroupId,omitempty" xml:"resourceGroupId,omitempty"` Status *string `json:"status,omitempty" xml:"status,omitempty"` }
Click to show internal directories.
Click to hide internal directories.