Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AuthenticationV3 = NewAuthV3
)
View Source
var Catalog1 = tokens.ServiceCatalog{ Entries: []tokens.CatalogEntry{ {ID: "s-8be070817", Name: "Arc", Type: "arc", Endpoints: []tokens.Endpoint{ {ID: "e-904f431c9", Region: "staging", Interface: "internal", URL: "https://arc-app-staging/internal"}, {ID: "e-904f431c9", Region: "staging", Interface: "admin", URL: "https://arc-app-staging/admin"}, {ID: "e-884f431c9", Region: "staging", Interface: "public", URL: "https://arc-app-staging/public"}, {ID: "e-904f431c9", Region: "production", Interface: "internal", URL: "https://arc-app-prod/internal"}, {ID: "e-904f431c9", Region: "production", Interface: "admin", URL: "https://arc-app-prod/admin"}, {ID: "e-884f431c9", Region: "production", Interface: "public", URL: "https://arc-app-prod/public"}, }}, {ID: "s-d5e793744", Name: "Lyra", Type: "automation", Endpoints: []tokens.Endpoint{ {ID: "e-54b8d28fc", Region: "staging", Interface: "public", URL: "https://lyra-app-staging"}, }}, }, }
View Source
var CommonResult1 = map[string]interface{}{"token": map[string]interface{}{"project": map[string]string{"id": "p-9597d2775", "domain_id": "o-monsoon2", "name": ""}}}
Functions ¶
func StringDiff ¶
Types ¶
type AuthOptions ¶
type AuthOptions struct { IdentityEndpoint string Username string UserId string Password string ProjectName string ProjectId string UserDomainName string UserDomainId string ProjectDomainName string ProjectDomainId string ApplicationCredentialID string ApplicationCredentialName string ApplicationCredentialSecret string }
type AuthV3 ¶
type AuthV3 struct { Options AuthOptions // contains filtered or unexported fields }
func (*AuthV3) GetOptions ¶
func (a *AuthV3) GetOptions() *AuthOptions
func (*AuthV3) GetProject ¶
func (*AuthV3) GetServiceEndpoint ¶
type Authentication ¶
type Authentication interface { GetToken() (*tokens.Token, error) GetServiceEndpoint(serviceType, region, serviceInterface string) (string, error) GetProject() (*Project, error) GetOptions() *AuthOptions }
func NewAuthV3 ¶
func NewAuthV3(authOpts AuthOptions) Authentication
func NewMockAuthenticationV3 ¶
func NewMockAuthenticationV3(authOpts AuthOptions) Authentication
type MockV3 ¶
type MockV3 struct { Options AuthOptions TestServer *httptest.Server // contains filtered or unexported fields }
func (*MockV3) GetOptions ¶
func (a *MockV3) GetOptions() *AuthOptions
func (*MockV3) GetProject ¶
func (*MockV3) GetServiceEndpoint ¶
Click to show internal directories.
Click to hide internal directories.