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
6 changes: 4 additions & 2 deletions cloud/deployment/deployment_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ const (
func newTokenTableOut() *printutil.Table {
return &printutil.Table{
DynamicPadding: true,
Header: []string{"ID", "NAME", "DESCRIPTION", "SCOPE", "DEPLOYMENT ROLE", "CREATED", "CREATED BY"},
Header: []string{"ID", "NAME", "DESCRIPTION", "SCOPE", "TYPE", "DEPLOYMENT ROLE", "CREATED", "CREATED BY"},
}
}

func newTokenSelectionTableOut() *printutil.Table {
return &printutil.Table{
DynamicPadding: true,
Header: []string{"#", "ID", "NAME", "DESCRIPTION", "SCOPE", "DEPLOYMENT ROLE", "CREATED", "CREATED BY"},
Header: []string{"#", "ID", "NAME", "DESCRIPTION", "SCOPE", "TYPE", "DEPLOYMENT ROLE", "CREATED", "CREATED BY"},
}
}

Expand Down Expand Up @@ -123,6 +123,7 @@ func ListTokens(client astrov1.APIClient, deploymentID string, tokenTypes *[]Dep
apiTokens[i].Name,
apiTokens[i].Description,
string(apiTokens[i].Scope),
string(apiTokens[i].Kind),
deploymentRoleOf(apiTokens[i], deploymentID),
created,
createdBy,
Expand Down Expand Up @@ -360,6 +361,7 @@ func selectTokens(deploymentID string, apiTokens []astrov1.ApiToken) (astrov1.Ap
apiTokens[i].Name,
apiTokens[i].Description,
string(apiTokens[i].Scope),
string(apiTokens[i].Kind),
deploymentRoleOf(apiTokens[i], deploymentID),
created,
createdBy,
Expand Down
3 changes: 2 additions & 1 deletion cloud/organization/organization_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const (
func newTokenTableOut() *printutil.Table {
return &printutil.Table{
DynamicPadding: true,
Header: []string{"ID", "NAME", "DESCRIPTION", "SCOPE", "ORGANIZATION ROLE", "CREATED", "CREATED BY"},
Header: []string{"ID", "NAME", "DESCRIPTION", "SCOPE", "TYPE", "ORGANIZATION ROLE", "CREATED", "CREATED BY"},
}
}

Expand Down Expand Up @@ -263,6 +263,7 @@ func ListTokens(client astrov1.APIClient, out io.Writer) error {
apiTokens[i].Name,
apiTokens[i].Description,
string(apiTokens[i].Scope),
string(apiTokens[i].Kind),
orgRoleOf(apiTokens[i]),
created,
createdBy,
Expand Down
6 changes: 4 additions & 2 deletions cloud/workspace-token/workspace_token.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ const (
func newTokenTableOut() *printutil.Table {
return &printutil.Table{
DynamicPadding: true,
Header: []string{"ID", "NAME", "DESCRIPTION", "SCOPE", "WORKSPACE ROLE", "CREATED", "CREATED BY"},
Header: []string{"ID", "NAME", "DESCRIPTION", "SCOPE", "TYPE", "WORKSPACE ROLE", "CREATED", "CREATED BY"},
}
}

func newTokenSelectionTableOut() *printutil.Table {
return &printutil.Table{
DynamicPadding: true,
Header: []string{"#", "ID", "NAME", "DESCRIPTION", "SCOPE", "WORKSPACE ROLE", "CREATED", "CREATED BY"},
Header: []string{"#", "ID", "NAME", "DESCRIPTION", "SCOPE", "TYPE", "WORKSPACE ROLE", "CREATED", "CREATED BY"},
}
}

Expand Down Expand Up @@ -133,6 +133,7 @@ func ListTokens(client astrov1.APIClient, workspaceID string, tokenTypes *[]Toke
apiTokens[i].Name,
apiTokens[i].Description,
string(apiTokens[i].Scope),
string(apiTokens[i].Kind),
workspaceRoleOf(apiTokens[i], workspaceID),
created,
createdBy,
Expand Down Expand Up @@ -393,6 +394,7 @@ func selectTokens(workspaceID string, apiTokens []astrov1.ApiToken) (astrov1.Api
apiTokens[i].Name,
apiTokens[i].Description,
string(apiTokens[i].Scope),
string(apiTokens[i].Kind),
workspaceRoleOf(apiTokens[i], workspaceID),
created,
createdBy,
Expand Down
Loading