client

package
v0.0.0-...-e91ad15 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigPath = "/var/addon/token-config"
)
View Source
const (
	MetaDataEndpoint = "http://100.100.100.200"
)

Variables

View Source
var (
	RamDefaultEndpoint    = "ims.aliyuncs.com"
	RamDefaultVPCEndpoint = "ims.vpc-proxy.aliyuncs.com"
)

Functions

func GetClusterId

func GetClusterId() string

func Init

func Init()

func NewRamClientConfigFromAKInfo

func NewRamClientConfigFromAKInfo(akInfo model.AKInfo) (config *openapi.Config)

Types

type AkClient

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

func NewAkClient

func NewAkClient() (*AkClient, error)

func (*AkClient) GetAKInfo

func (i *AkClient) GetAKInfo() (*model.AKInfo, error)

type AliyunRamClient

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

func GetAliyunRamClient

func GetAliyunRamClient() *AliyunRamClient

func NewAliyunRamClient

func NewAliyunRamClient() (*AliyunRamClient, error)

func (*AliyunRamClient) GetMetadataClient

func (c *AliyunRamClient) GetMetadataClient() *MetadataClient

func (*AliyunRamClient) GetRamClient

func (c *AliyunRamClient) GetRamClient() (ramClient *ims.Client, err error)

type ConsoleClientMgr

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

type MetadataClient

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

func NewMetadataClient

func NewMetadataClient() (*MetadataClient, error)

func (*MetadataClient) GetRegionId

func (c *MetadataClient) GetRegionId() (regionId string, err error)

func (*MetadataClient) GetRoleAuth

func (c *MetadataClient) GetRoleAuth(roleName string) (roleAuth *model.RoleAuth, err error)

func (*MetadataClient) GetRoleName

func (c *MetadataClient) GetRoleName() (roleName string, err error)

Jump to

Keyboard shortcuts

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