MCPcopy Index your code
hub / github.com/coder/coder / FullName

Method FullName

codersdk/roles.go:82–87  ·  view source on GitHub ↗

FullName returns the role name scoped to the organization ID. This is useful if printing a set of roles from different scopes, as duplicated names across multiple scopes will become unique. In practice, this is primarily used in testing.

()

Source from the content-addressed store, hash-verified

80// scopes will become unique.
81// In practice, this is primarily used in testing.
82func (r Role) FullName() string {
83 if r.OrganizationID == "" {
84 return r.Name
85 }
86 return r.Name + ":" + r.OrganizationID
87}
88
89// CreateOrganizationRole will create a custom organization role
90func (c *Client) CreateOrganizationRole(ctx context.Context, role Role) (Role, error) {

Callers 11

CreateWorkspaceFunction · 0.45
help.goFile · 0.45
deleteWorkspaceMethod · 0.45
CommandMethod · 0.45
formatRunCommandErrorFunction · 0.45
StartWithWaiterFunction · 0.45
initFunction · 0.45
fullNameFunction · 0.45
fmtDocFilenameFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected