Documentation ¶
Index ¶
- Constants
- func BuildPermissionTargetSchema() map[string]*schema.Schema
- func DataSourceArtifactoryGroup() *schema.Resource
- func DataSourceArtifactoryPermissionTarget() *schema.Resource
- func PackPermissionTarget(permissionTarget *PermissionTargetParams, d *schema.ResourceData) diag.Diagnostics
- type Actions
- type Group
- type PermissionTargetParams
- type PermissionTargetSection
Constants ¶
View Source
const ( PermRead = "read" PermWrite = "write" PermAnnotate = "annotate" PermDelete = "delete" PermManage = "manage" PermManagedXrayMeta = "managedXrayMeta" PermDistribute = "distribute" )
View Source
const PermissionsEndPoint = "artifactory/api/v2/security/permissions/"
Variables ¶
This section is empty.
Functions ¶
func PackPermissionTarget ¶
func PackPermissionTarget(permissionTarget *PermissionTargetParams, d *schema.ResourceData) diag.Diagnostics
Types ¶
type Group ¶
type Group struct { Name string `json:"name,omitempty"` Description string `json:"description,omitempty"` ExternalId string `json:"externalId"` AutoJoin bool `json:"autoJoin,omitempty"` AdminPrivileges bool `json:"adminPrivileges,omitempty"` Realm string `json:"realm,omitempty"` RealmAttributes string `json:"realmAttributes,omitempty"` UsersNames []string `json:"userNames"` WatchManager bool `json:"watchManager"` PolicyManager bool `json:"policyManager"` ReportsManager bool `json:"reportsManager"` }
type PermissionTargetParams ¶
type PermissionTargetParams struct { Name string `json:"name"` Repo *PermissionTargetSection `json:"repo,omitempty"` Build *PermissionTargetSection `json:"build,omitempty"` ReleaseBundle *PermissionTargetSection `json:"releaseBundle,omitempty"` }
Click to show internal directories.
Click to hide internal directories.