service

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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

View Source
const DefaultRole string = "Analysis"

Variables

This section is empty.

Functions

func ExtractExperimentAndRoleFromServiceName

func ExtractExperimentAndRoleFromServiceName(serviceName string) (string, string)

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

type Service interface {
	Experiment() string
	Role() string
	Name() string
}

Service is implemented by any value that has an experiment name and role, and defines methods for retrieving those from the underlying

func NewService

func NewService(serviceName string) Service

NewService takes a serviceName string, parses it into the experiment and role components, and returns an initialized Service object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL