Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ microcks [command] [flags]

| Flag | Description |
| ------------------------ | ------------------------------------------- |
| `-h, --help` | help for microck command |
| `-h, --help` | help for microcks command |
| `--config` | Path to Microcks config file |
| `--microcks-context` | Name of the Microcks context to use |
| `--verbose` | Produce dumps of HTTP exchanges |
Expand Down
2 changes: 1 addition & 1 deletion cmd/login.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func NewLoginCommand(globalClientOpts *connectors.ClientOptions) *cobra.Command
Use: "login SERVER",
Short: "Login into Microcks instance",
Long: "Login into Microcks instance",
Example: `microcks login http://locahost:8080
Example: `microcks login http://localhost:8080

# Provide name to your logged in context (Default context name is server name)
microcks login http://localhost:8080 --name
Expand Down
2 changes: 1 addition & 1 deletion cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ microcks start
microcks start --port [Port you want]

# Define your driver (by default docker)
microcks start --driver [driver you wnat either 'docker' or 'podman']
microcks start --driver [driver you want either 'docker' or 'podman']

# Define name of your microcks container/instance
microcks start --name [name of you container/instance]`,
Expand Down
2 changes: 1 addition & 1 deletion pkg/config/localconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ func (l *LocalConfig) GetAuth(server string) (*Auth, error) {
}
}

return nil, fmt.Errorf("Auth for '%s' is undifined", server)
return nil, fmt.Errorf("Auth for '%s' is undefined", server)
}

func (l *LocalConfig) UpsertAuth(auth Auth) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/connectors/keycloak_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"golang.org/x/oauth2"
)

// KeycloakClient defines methods for cinteracting with Keycloak
// KeycloakClient defines methods for interacting with Keycloak
type KeycloakClient interface {
ConnectAndGetToken() (string, error)
ConnectAndGetTokenAndRefreshToken(string, string) (string, string, error)
Expand Down
4 changes: 2 additions & 2 deletions pkg/connectors/microcks_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (c *microcksClient) HttpClient() *http.Client {
}

func (c *microcksClient) GetKeycloakURL() (string, error) {
// Ensure we have a correct URL for retrieving Keycloal configuration.
// Ensure we have a correct URL for retrieving Keycloak configuration.
rel := &url.URL{Path: "keycloak/config"}
u := c.APIURL.ResolveReference(rel)

Expand Down Expand Up @@ -241,7 +241,7 @@ func (c *microcksClient) GetKeycloakURL() (string, error) {
authServerURL := configResp["auth-server-url"].(string)
realmName := configResp["realm"].(string)

// Return a proper URL or 'null' if Keycloak is disables.
// Return a proper URL or 'null' if Keycloak is disabled.
if enabled {
return authServerURL + "/realms/" + realmName + "/", nil
}
Expand Down