File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -6,36 +6,36 @@ import (
66 "github.com/dineshgowda24/alfred-gcp-workflow/gcloud"
77)
88
9- type Roleslist struct {
9+ type Role struct {
1010 Description string
1111 Name string
1212 DisplayTitle string
1313}
1414
15- func (r Roleslist ) Details () string {
15+ func (r Role ) Details () string {
1616 return r .Name
1717}
1818
19- func (r Roleslist ) Subtitle () string {
19+ func (r Role ) Subtitle () string {
2020 return r .Description
2121}
2222
23- func (r Roleslist ) Title () string {
23+ func (r Role ) Title () string {
2424 return r .DisplayTitle
2525}
2626
27- func (r Roleslist ) URL (config * gcloud.Config ) string {
27+ func (r Role ) URL (config * gcloud.Config ) string {
2828 id := r .ID ()
2929 return "https://console.cloud.google.com/iam-admin/roles/details/" + id + "?project=" + config .Project
3030
3131}
3232
33- func (r Roleslist ) ID () string {
33+ func (r Role ) ID () string {
3434 parts := strings .ReplaceAll (r .Name , "/" , "%2F" )
3535 return parts
3636}
37- func FromGCloudIAMRoles (roles * gcloud.IAMRole ) Roleslist {
38- return Roleslist {
37+ func FromGCloudIAMRoles (roles * gcloud.IAMRole ) Role {
38+ return Role {
3939 Description : roles .Description ,
4040 Name : roles .Name ,
4141 DisplayTitle : roles .Title ,
File renamed without changes.
You can’t perform that action at this time.
0 commit comments