Documentation ¶
Index ¶
- Constants
- type AccessControlEntry
- type AccessControlEntryCollection
- type AccessControlList
- type AccessControlListCollection
- type AceExtendedInformation
- type ActionDefinition
- type Client
- func (c *Client) GetAccessControlLists(ctx context.Context, namespaceId string, token string) (*AccessControlListCollection, error)
- func (c *Client) GetClassificationNodeToken(iterationId string) string
- func (c *Client) GetEnvironmentToken(projectId string, environmentId int) string
- func (c *Client) GetIdentityByDescriptor(ctx context.Context, descriptor string) (*Identity, error)
- func (c *Client) GetIdentityBySubjectDescriptor(ctx context.Context, subjectDescriptor string) (*Identity, error)
- func (c *Client) GetPipelineToken(projectId string, pipelineId int) string
- func (c *Client) GetProjectToken(projectId string) string
- func (c *Client) GetRepositoryToken(projectId string, repositoryId string) string
- func (c *Client) GetSecurityNamespaces(ctx context.Context) (*SecurityNamespacesCollection, error)
- func (c *Client) GetServiceEndpointToken(projectId string, serviceEndpointId string) string
- func (c *Client) RemoveAccessControlEntries(ctx context.Context, namespaceId string, token string, descriptors []string) error
- func (c *Client) RemoveAccessControlLists(ctx context.Context, namespaceId string, token string) error
- func (c *Client) SetAccessControlEntries(ctx context.Context, namespaceId string, token string, ...) error
- func (c *Client) SetAccessControlLists(ctx context.Context, namespaceId string, ...) error
- type Identity
- type IdentityCollection
- type SecurityNamespaceDescription
- type SecurityNamespacesCollection
- type SetAccessControlEntriesArgs
Constants ¶
View Source
const ( NamespaceIdAccountAdminSecurity = "11238e09-49f2-40c7-94d0-8f0307204ce4" NamespaceIdAnalytics = "58450c49-b02d-465a-ab12-59ae512d6531" NamespaceIdAnalyticsViews = "d34d3680-dfe5-4cc6-a949-7d9c68f73cba" NamespaceIdAuditLog = "a6cc6381-a1ca-4b36-b3c1-4e65211e82b6" NamespaceIdBoards = "251e12d9-bea3-43a8-bfdb-901b98c0125e" NamespaceIdBoardsExternalIntegration = "5ab15bc8-4ea1-d0f3-8344-cab8fe976877" NamespaceIdBuild = "33344d9c-fc72-4d6f-aba5-fa317101a7e9" NamespaceIdBuildAdministration = "302acaca-b667-436d-a946-87133492041c" NamespaceIdCollection = "3e65f728-f8bc-4ecd-8764-7e378b19bfa7" NamespaceIdCrossProjectWidgetView = "093cbb02-722b-4ad6-9f88-bc452043fa63" NamespaceIdCSS = "83e28ad4-2d72-4ceb-97b0-c7726d5502c3" NamespaceIdDashboardsPrivileges = "8adf73b7-389a-4276-b638-fe1653f7efc7" NamespaceIdDataProvider = "7ffa7cf4-317c-4fea-8f1d-cfda50cfa956" NamespaceIdDiscussionThreads = "0d140cae-8ac1-4f48-b6d1-c93ce0301a12" NamespaceIdDistributedTask = "101eae8c-1709-47f9-b228-0e476c35b3ba" NamespaceIdEventSubscriber = "2bf24a2b-70ba-43d3-ad97-3d9e1f75622f" NamespaceIdEventSubscription = "58b176e7-3411-457a-89d0-c6d0ccb3c52b" NamespaceIdEnvironment = "83d4c2e6-e57d-4d6e-892b-b87222b7ad20" NamespaceIdFavorites = "fa557b48-b5bf-458a-bb2b-1b680426fe8b" NamespaceIdGitRepositories = "2e9eb7ed-3c0a-47d4-87c1-0ffdd275fd87" NamespaceIdGraph = "c2ee56c9-e8fa-4cdd-9d48-2c44f697a58e" NamespaceIdIdentity = "5a27515b-ccd7-42c9-84f1-54c998f03866" NamespaceIdIdentityPicker = "a60e0d84-c2f8-48e4-9c0c-f32da48d5fd1" NamespaceIdIteration = "bf7bfa03-b2b7-47db-8113-fa2e002cc5b1" NamespaceIdJob = "2a887f97-db68-4b7c-9ae3-5cebd7add999" NamespaceIdLibrary = "b7e84409-6553-448a-bbb2-af228e07cbeb" NamespaceIdLocation = "2725d2bc-7520-4af4-b0e3-8d876494731f" NamespaceIdMetaTask = "f6a4de49-dbe2-4704-86dc-f8ec1a294436" NamespaceIdPlan = "bed337f8-e5f3-4fb9-80da-81e17d06e7a8" NamespaceIdProcess = "2dab47f9-bd70-49ed-9bd5-8eb051e59c02" NamespaceIdProject = "52d39943-cb85-4d7f-8fa8-c6baac873819" NamespaceIdProjectAnalysisLanguageMetrics = "fc5b7b85-5d6b-41eb-8534-e128cb10eb67" NamespaceIdProxy = "cb4d56d2-e84b-457e-8845-81320a133fbb" NamespaceIdRegistry = "4ae0db5d-8437-4ee8-a18b-1f6fb38bd34c" NamespaceIdReleaseManagement = "7c7d32f7-0e86-4cd6-892e-b35dbba870bd" NamespaceIdReleaseManagement2 = "c788c23e-1b46-4162-8f5e-d7585343b5de" NamespaceIdSecurity = "9a82c708-bfbe-4f31-984c-e860c2196781" NamespaceIdServer = "1f4179b3-6bac-4d01-b421-71ea09171400" NamespaceIdServiceEndpoints = "49b48001-ca20-4adc-8111-5b60c903a50c" NamespaceIdServiceHooks = "cb594ebe-87dd-4fc9-ac2c-6a10a4c92046" NamespaceIdServicingOrchestration = "84cc1aa4-15bc-423d-90d9-f97c450fc729" NamespaceIdSettingEntries = "6ec4592e-048c-434e-8e6c-8671753a8418" NamespaceIdSocial = "81c27cc8-7a9f-48ee-b63f-df1e1d0412dd" NamespaceIdStrongBox = "4a9e8381-289a-4dfd-8460-69028eaa93b3" NamespaceIdTagging = "bb50f182-8e5e-40b8-bc21-e8752a1e7ae2" NamespaceIdTeamLabSecurity = "9e4894c3-ff9a-4eac-8a85-ce11cafdc6f1" NamespaceIdTestManagement = "e06e1c24-e93d-4e4a-908a-7d951187b483" NamespaceIdUtilizationPermissions = "83abde3a-4593-424e-b45f-9898af99034d" NamespaceIdVersionControlItems = "a39371cf-0841-4c16-bbd3-276e341bc052" NamespaceIdVersionControlItems2 = "3c15a8b7-af1a-45c2-aa97-2cb97078332e" NamespaceIdVersionControlPrivileges = "66312704-deb5-43f9-b51c-ab4ff5e351c3" NamespaceIdViewActivityPaneSecurity = "dc02bf3d-cd48-46c3-8a41-345094ecc94b" NamespaceIdWebPlatform = "0582eb05-c896-449a-b933-aa3d99e121d6" NamespaceIdWorkItemQueryFolders = "71356614-aad7-4757-8f2c-0fb3bff6f680" NamespaceIdWorkItemTracking = "73e71c45-d483-40d5-bdba-62fd076f7f87" NamespaceIdWorkItemTrackingAdministration = "445d2788-c5fb-4132-bbef-09c4045ad93f" NamespaceIdWorkItemTrackingConfiguration = "35e35e8e-686d-4b01-aff6-c369d6e36ce0" NamespaceIdWorkItemTrackingProvision = "5a6cd233-6615-414d-9393-48dbb252bd23" NamespaceIdWorkItemsHub = "c0e7a722-1cad-4ae6-b340-a8467501e7ce" NamespaceIdWorkspaces = "93bafc04-9075-403a-9367-b7164eac6b5c" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessControlEntry ¶
type AccessControlEntry struct { Allow *int `json:"allow,omitempty"` Deny *int `json:"deny,omitempty"` Descriptor *string `json:"descriptor,omitempty"` ExtendedInfo *AceExtendedInformation `json:"extendedInfo,omitempty"` }
type AccessControlEntryCollection ¶ added in v0.5.0
type AccessControlEntryCollection struct { Count *int `json:"count"` Value *[]AccessControlEntry `json:"value"` }
type AccessControlList ¶
type AccessControlList struct { AcesDictionary *map[string]AccessControlEntry `json:"acesDictionary,omitempty"` IncludeExtendedInfo *bool `json:"includeExtendedInfo,omitempty"` InheritPermissions *bool `json:"inheritPermissions,omitempty"` Token *string `json:"token,omitempty"` }
type AccessControlListCollection ¶
type AccessControlListCollection struct { Count *int `json:"count"` Value *[]AccessControlList `json:"value"` }
type AceExtendedInformation ¶
type ActionDefinition ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(restClient *networking.RestClient, vsspsClient *networking.RestClient) *Client
func (*Client) GetAccessControlLists ¶
func (*Client) GetClassificationNodeToken ¶ added in v0.5.0
func (*Client) GetEnvironmentToken ¶
func (*Client) GetIdentityByDescriptor ¶
func (*Client) GetIdentityBySubjectDescriptor ¶ added in v0.3.0
func (*Client) GetPipelineToken ¶ added in v0.5.0
func (*Client) GetProjectToken ¶ added in v0.5.0
func (*Client) GetRepositoryToken ¶ added in v0.5.0
func (*Client) GetSecurityNamespaces ¶
func (c *Client) GetSecurityNamespaces(ctx context.Context) (*SecurityNamespacesCollection, error)
func (*Client) GetServiceEndpointToken ¶ added in v0.5.0
func (*Client) RemoveAccessControlEntries ¶ added in v0.5.0
func (*Client) RemoveAccessControlLists ¶
func (*Client) SetAccessControlEntries ¶ added in v0.5.0
func (*Client) SetAccessControlLists ¶
type Identity ¶
type Identity struct { CustomDisplayName *string `json:"customDisplayName,omitempty"` Descriptor *string `json:"descriptor,omitempty"` Id *uuid.UUID `json:"id,omitempty"` IsActive *bool `json:"isActive,omitempty"` IsContainer *bool `json:"isContainer,omitempty"` MasterId *uuid.UUID `json:"masterId,omitempty"` MemberIds *[]uuid.UUID `json:"memberIds,omitempty"` MemberOf *[]string `json:"memberOf,omitempty"` Members *[]string `json:"members,omitempty"` MetaTypeId *int `json:"metaTypeId,omitempty"` Properties interface{} `json:"properties,omitempty"` ProviderDisplayName *string `json:"providerDisplayName,omitempty"` ResourceVersion *int `json:"resourceVersion,omitempty"` SocialDescriptor *string `json:"socialDescriptor,omitempty"` SubjectDescriptor *string `json:"subjectDescriptor,omitempty"` UniqueUserId *int `json:"uniqueUserId,omitempty"` }
type IdentityCollection ¶ added in v0.3.0
type SecurityNamespaceDescription ¶
type SecurityNamespaceDescription struct { Actions *[]ActionDefinition `json:"actions,omitempty"` DataspaceCategory *string `json:"dataspaceCategory,omitempty"` DisplayName *string `json:"displayName,omitempty"` ElementLength *int `json:"elementLength,omitempty"` ExtensionType *string `json:"extensionType,omitempty"` IsRemotable *bool `json:"isRemotable,omitempty"` Name *string `json:"name,omitempty"` NamespaceId *uuid.UUID `json:"namespaceId,omitempty"` ReadPermission *int `json:"readPermission,omitempty"` SeparatorValue *string `json:"separatorValue,omitempty"` StructureValue *int `json:"structureValue,omitempty"` SystemBitMask *int `json:"systemBitMask,omitempty"` UseTokenTranslator *bool `json:"useTokenTranslator,omitempty"` WritePermission *int `json:"writePermission,omitempty"` }
type SecurityNamespacesCollection ¶ added in v0.3.0
type SecurityNamespacesCollection struct { Count *int `json:"count"` Value *[]SecurityNamespaceDescription `json:"value"` }
type SetAccessControlEntriesArgs ¶ added in v0.5.0
type SetAccessControlEntriesArgs struct { AccessControlEntries *[]AccessControlEntry `json:"accessControlEntries,omitempty"` Merge *bool `json:"merge,omitempty"` Token *string `json:"token,omitempty"` }
Click to show internal directories.
Click to hide internal directories.