Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ClientSet ¶
type ClientSet struct {
// contains filtered or unexported fields
}
Client 客户端
func NewKeyauthClient ¶ added in v0.0.11
NewClient todo 传递用户验证中心的地址
type Config ¶ added in v0.0.11
type Config struct { Address string `json:"address" toml:"address" yaml:"address" env:"KEYAUTH_ADDRESS"` ClientID string `json:"client_id" toml:"client_id" yaml:"client_id" env:"KEYAUTH_CLINET_ID"` ClientSecret string `json:"client_secret" toml:"client_secret" yaml:"client_secret" env:"KEYAUTH_CLIENT_SECRET"` Resolver *Resolver `json:"resolver" toml:"resolver" yaml:"resolver"` *auth.Authentication }
Config 客户端配置
func (*Config) Credentials ¶ added in v0.0.11
func (c *Config) Credentials() *auth.Authentication
func (*Config) SetAddress ¶ added in v0.0.15
SetAddress todo
type Resolver ¶ added in v0.0.11
type Resolver struct { // 实例所属地域, 默认default Region string `json:"region" toml:"region" yaml:"region" env:"MCENTER_REGION" validate:"required"` // 实例所属环境, 默认default Environment string `json:"environment" toml:"environment" yaml:"environment" env:"MCENTER_ENV" validate:"required"` // 实例所属分组,默认default Group string `json:"group" toml:"group" yaml:"group" env:"MCENTER_GROUP" validate:"required"` // 实例标签, 可以根据标签快速过滤实例, 格式k=v,k=v Tags string `json:"tags" toml:"tags" yaml:"tags" env:"MCENTER_TAGS"` }
func NewDefaultResolver ¶ added in v0.0.11
func NewDefaultResolver() *Resolver
func (*Resolver) ToQueryString ¶ added in v0.0.11
Click to show internal directories.
Click to hide internal directories.