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
Types ¶
type AkClient ¶
type AkClient struct {
// contains filtered or unexported fields
}
func NewAkClient ¶
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)
Click to show internal directories.
Click to hide internal directories.