Documentation
¶
Index ¶
- Constants
- func String(v string) *string
- type Entity
- type Permission
- type PermissionTarget
- type PermissionTargetDetails
- type SecurityService
- func (s *SecurityService) CreatePermissionTarget(ctx context.Context, permissionName string, ...) (*resty.Response, error)
- func (s *SecurityService) DeletePermissionTarget(ctx context.Context, permissionName string) (*resty.Response, error)
- func (s *SecurityService) GetPermissionTarget(ctx context.Context, permissionName string) (*PermissionTarget, *resty.Response, error)
- func (s *SecurityService) HasPermissionTarget(ctx context.Context, permissionName string) (*resty.Response, error)
- func (s *SecurityService) ListPermissionTargets(ctx context.Context) (*[]PermissionTargetDetails, *resty.Response, error)
- func (s *SecurityService) UpdatePermissionTarget(ctx context.Context, permissionName string, ...) (*resty.Response, error)
- type Service
- type V2
Constants ¶
View Source
const ( PERM_READ = "read" PERM_WRITE = "write" PERM_ANNOTATE = "annotate" PERM_DELETE = "delete" PERM_MANAGE = "manage" PERMISSION_SCHEMA = "application/vnd.org.jfrog.artifactory.security.PermissionTargetV2+json" )
read, write, annotate, delete, manage
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Permission ¶
type PermissionTarget ¶
type PermissionTarget struct { Name *string `json:"name,omitempty"` // Optional element in create/replace queries Repo *Permission `json:"repo,omitempty"` Build *Permission `json:"build,omitempty"` }
func (PermissionTarget) String ¶
func (r PermissionTarget) String() string
type PermissionTargetDetails ¶
type PermissionTargetDetails struct { Name *string `json:"name,omitempty"` Uri *string `json:"uri,omitempty"` }
func (PermissionTargetDetails) String ¶
func (r PermissionTargetDetails) String() string
type SecurityService ¶
type SecurityService Service
func (*SecurityService) CreatePermissionTarget ¶
func (s *SecurityService) CreatePermissionTarget(ctx context.Context, permissionName string, permissionTargets *PermissionTarget) (*resty.Response, error)
func (*SecurityService) DeletePermissionTarget ¶
func (s *SecurityService) DeletePermissionTarget(ctx context.Context, permissionName string) (*resty.Response, error)
func (*SecurityService) GetPermissionTarget ¶
func (s *SecurityService) GetPermissionTarget(ctx context.Context, permissionName string) (*PermissionTarget, *resty.Response, error)
func (*SecurityService) HasPermissionTarget ¶
func (s *SecurityService) HasPermissionTarget(ctx context.Context, permissionName string) (*resty.Response, error)
func (*SecurityService) ListPermissionTargets ¶
func (s *SecurityService) ListPermissionTargets(ctx context.Context) (*[]PermissionTargetDetails, *resty.Response, error)
func (*SecurityService) UpdatePermissionTarget ¶
func (s *SecurityService) UpdatePermissionTarget(ctx context.Context, permissionName string, permissionTargets *PermissionTarget) (*resty.Response, error)
Missing permission target values will be set to the default values as defined by the consumed type. The values defined in the request payload will replace what currently exists in the permission target entity. In case the request is missing one of the permission target entities (repo/build), the entity will be deleted. This means that if an update request is sent to an entity that contains both repo and build, with only repo, the build values will be removed from the entity.
Click to show internal directories.
Click to hide internal directories.