Documentation
¶
Overview ¶
Package urn provides the PRN (Phobos Resource Name) functionalities. Primarily responsible for resolving the UUID from either a GlobalID or a PRN.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetResourceType ¶
func GetResourceType(prn string) models.ResourceType
GetResourceType returns the resource type from a PRN.
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver resolves a resource UUID from either a GID or PRN.
func NewResolver ¶
func NewResolver(options *ResolverOptions) *Resolver
NewResolver creates a new resolver.
type ResolverOptions ¶
type ResolverOptions struct {
OrganizationService organization.Service
AgentService agent.Service
ProjectService project.Service
ProjectVariableService projectvariable.Service
EnvironmentService environment.Service
ServiceAccountService serviceaccount.Service
UserService user.Service
TeamService team.Service
RoleService role.Service
JobService job.Service
MembershipService membership.Service
PipelineService pipeline.Service
PipelineTemplateService pipelinetemplate.Service
ApprovalRuleService approvalrule.Service
LifecycleTemplateService lifecycletemplate.Service
ReleaseLifecycleService releaselifecycle.Service
ReleaseService release.Service
CommentService comment.Service
PluginRegistryService pluginregistry.Service
ToDoItemService todoitem.Service
VCSProviderService vcs.Service
}
ResolverOptions are the options for the resolver.
Click to show internal directories.
Click to hide internal directories.