Documentation ¶
Overview ¶
Package service provides the types and related methods to declare, manage, and configure OAuth services (as defined by the HTCondor project). A "service" is used by grid token-retrieving tools to ascertain the correct token issuer, scope, and group memberships that a SciToken should contain.
Index ¶
Constants ¶
const DefaultRole string = "Analysis"
Variables ¶
This section is empty.
Functions ¶
func ExtractExperimentAndRoleFromServiceName ¶
ExtractExperimentAndRoleFromServiceName parses a service name and returns the experiment and role, assuming the separating character between those in the service name is "_"
Types ¶
type Service ¶
Service is implemented by any value that has an experiment name and role, and defines methods for retrieving those from the underlying
func NewService ¶
NewService takes a serviceName string, parses it into the experiment and role components, and returns an initialized Service object