proxycachesecret

package
v0.0.0-...-21de424 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// contains "#" to avoid the conflict with normal user
	ProxyCacheService = "harbor#proxy-cache-service"
)

const definition

Variables

This section is empty.

Functions

This section is empty.

Types

type SecurityContext

type SecurityContext struct {
	// contains filtered or unexported fields
}

SecurityContext is the security context for proxy cache secret

func NewSecurityContext

func NewSecurityContext(repository string) *SecurityContext

NewSecurityContext returns an instance of the proxy cache secret security context

func (*SecurityContext) Can

func (s *SecurityContext) Can(ctx context.Context, action types.Action, resource types.Resource) bool

Can returns true only when requesting pull/push operation against the specific project

func (*SecurityContext) GetUsername

func (s *SecurityContext) GetUsername() string

GetUsername returns the name of proxy cache service

func (*SecurityContext) IsAuthenticated

func (s *SecurityContext) IsAuthenticated() bool

IsAuthenticated always returns true

func (*SecurityContext) IsSolutionUser

func (s *SecurityContext) IsSolutionUser() bool

IsSolutionUser always returns false

func (*SecurityContext) IsSysAdmin

func (s *SecurityContext) IsSysAdmin() bool

IsSysAdmin always returns false

func (*SecurityContext) Name

func (s *SecurityContext) Name() string

Name returns the name of the security context

Jump to

Keyboard shortcuts

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