Documentation ¶
Index ¶
- Constants
- Variables
- func AuthMiddleware(logger logging.Logger, swagger *openapi3.Swagger, ...) func(next http.Handler) http.Handler
- func GenerateJWTLogin(secret []byte, userID int64, issuedAt, expiresAt time.Time) (string, error)
- func GenerateJWTResetPassword(secret []byte, email string, issuedAt, expiresAt time.Time) (string, error)
- func Int64Ptr(n int64) *int64
- func Int64Value(p *int64) int64
- func InvalidAPIEndpointHandler(w http.ResponseWriter, _ *http.Request)
- func IsStatusCodeOK(statusCode int) bool
- func MetricsMiddleware(swagger *openapi3.Swagger) func(http.Handler) http.Handler
- func NewHandlerWithDefault(fileSystem http.FileSystem, handler http.Handler, gatewayDomains []string) http.Handler
- func NewInjectIndexFS(fsys fs.FS, name string, marker string, snippets []params.CodeSnippet) (fs.FS, error)
- func NewUIHandler(gatewayDomains []string, snippets []params.CodeSnippet) http.Handler
- func OapiRequestValidatorWithOptions(swagger *openapi3.Swagger, options *openapi3filter.Options) func(http.Handler) http.Handler
- func Serve(cfg *config.Config, catalog catalog.Interface, ...) http.Handler
- func StringPtr(s string) *string
- func StringValue(s *string) string
- func VerifyResetPasswordToken(ctx context.Context, authService auth.Service, token string) (*jwt.StandardClaims, error)
- type AuditChecker
- type Controller
- func (c *Controller) AddGroupMembership(w http.ResponseWriter, r *http.Request, groupID string, userID string)
- func (c *Controller) AttachPolicyToGroup(w http.ResponseWriter, r *http.Request, groupID string, policyID string)
- func (c *Controller) AttachPolicyToUser(w http.ResponseWriter, r *http.Request, userID string, policyID string)
- func (c *Controller) Commit(w http.ResponseWriter, r *http.Request, body CommitJSONRequestBody, ...)
- func (c *Controller) CreateBranch(w http.ResponseWriter, r *http.Request, body CreateBranchJSONRequestBody, ...)
- func (c *Controller) CreateBranchProtectionRule(w http.ResponseWriter, r *http.Request, ...)
- func (c *Controller) CreateCredentials(w http.ResponseWriter, r *http.Request, userID string)
- func (c *Controller) CreateGroup(w http.ResponseWriter, r *http.Request, body CreateGroupJSONRequestBody)
- func (c *Controller) CreateMetaRange(w http.ResponseWriter, r *http.Request, body CreateMetaRangeJSONRequestBody, ...)
- func (c *Controller) CreatePolicy(w http.ResponseWriter, r *http.Request, body CreatePolicyJSONRequestBody)
- func (c *Controller) CreateRepository(w http.ResponseWriter, r *http.Request, body CreateRepositoryJSONRequestBody, ...)
- func (c *Controller) CreateSymlinkFile(w http.ResponseWriter, r *http.Request, repository string, branch string, ...)
- func (c *Controller) CreateTag(w http.ResponseWriter, r *http.Request, body CreateTagJSONRequestBody, ...)
- func (c *Controller) CreateUser(w http.ResponseWriter, r *http.Request, body CreateUserJSONRequestBody)
- func (c *Controller) DeleteBranch(w http.ResponseWriter, r *http.Request, repository string, branch string)
- func (c *Controller) DeleteBranchProtectionRule(w http.ResponseWriter, r *http.Request, ...)
- func (c *Controller) DeleteCredentials(w http.ResponseWriter, r *http.Request, userID string, accessKeyID string)
- func (c *Controller) DeleteGroup(w http.ResponseWriter, r *http.Request, groupID string)
- func (c *Controller) DeleteGroupMembership(w http.ResponseWriter, r *http.Request, groupID string, userID string)
- func (c *Controller) DeleteObject(w http.ResponseWriter, r *http.Request, repository string, branch string, ...)
- func (c *Controller) DeleteObjects(w http.ResponseWriter, r *http.Request, body DeleteObjectsJSONRequestBody, ...)
- func (c *Controller) DeletePolicy(w http.ResponseWriter, r *http.Request, policyID string)
- func (c *Controller) DeleteRepository(w http.ResponseWriter, r *http.Request, repository string)
- func (c *Controller) DeleteTag(w http.ResponseWriter, r *http.Request, repository string, tag string)
- func (c *Controller) DeleteUser(w http.ResponseWriter, r *http.Request, userID string)
- func (c *Controller) DetachPolicyFromGroup(w http.ResponseWriter, r *http.Request, groupID string, policyID string)
- func (c *Controller) DetachPolicyFromUser(w http.ResponseWriter, r *http.Request, userID string, policyID string)
- func (c *Controller) DiffBranch(w http.ResponseWriter, r *http.Request, repository string, branch string, ...)
- func (c *Controller) DiffRefs(w http.ResponseWriter, r *http.Request, repository string, leftRef string, ...)
- func (c *Controller) DumpRefs(w http.ResponseWriter, r *http.Request, repository string)
- func (c *Controller) ForgotPassword(w http.ResponseWriter, r *http.Request, body ForgotPasswordJSONRequestBody)
- func (c *Controller) GetAuthCapabilities(w http.ResponseWriter, _ *http.Request)
- func (c *Controller) GetBranch(w http.ResponseWriter, r *http.Request, repository string, branch string)
- func (c *Controller) GetBranchProtectionRules(w http.ResponseWriter, r *http.Request, repository string)
- func (c *Controller) GetCommit(w http.ResponseWriter, r *http.Request, repository string, commitID string)
- func (c *Controller) GetCredentials(w http.ResponseWriter, r *http.Request, userID string, accessKeyID string)
- func (c *Controller) GetCurrentUser(w http.ResponseWriter, r *http.Request)
- func (c *Controller) GetGarbageCollectionRules(w http.ResponseWriter, r *http.Request, repository string)
- func (c *Controller) GetGroup(w http.ResponseWriter, r *http.Request, groupID string)
- func (c *Controller) GetLakeFSVersion(w http.ResponseWriter, r *http.Request)
- func (c *Controller) GetMetaRange(w http.ResponseWriter, r *http.Request, repository string, metaRange string)
- func (c *Controller) GetObject(w http.ResponseWriter, r *http.Request, repository string, ref string, ...)
- func (c *Controller) GetPhysicalAddress(w http.ResponseWriter, r *http.Request, repository string, branch string, ...)
- func (c *Controller) GetPolicy(w http.ResponseWriter, r *http.Request, policyID string)
- func (c *Controller) GetRange(w http.ResponseWriter, r *http.Request, repository string, pRange string)
- func (c *Controller) GetRepository(w http.ResponseWriter, r *http.Request, repository string)
- func (c *Controller) GetRun(w http.ResponseWriter, r *http.Request, repository string, runID string)
- func (c *Controller) GetRunHookOutput(w http.ResponseWriter, r *http.Request, repository string, runID string, ...)
- func (c *Controller) GetSetupState(w http.ResponseWriter, r *http.Request)
- func (c *Controller) GetStorageConfig(w http.ResponseWriter, r *http.Request)
- func (c *Controller) GetTag(w http.ResponseWriter, r *http.Request, repository string, tag string)
- func (c *Controller) GetUnderlyingProperties(w http.ResponseWriter, r *http.Request, repository string, ref string, ...)
- func (c *Controller) GetUser(w http.ResponseWriter, r *http.Request, userID string)
- func (c *Controller) HealthCheck(w http.ResponseWriter, _ *http.Request)
- func (c *Controller) IngestRange(w http.ResponseWriter, r *http.Request, body IngestRangeJSONRequestBody, ...)
- func (c *Controller) LinkPhysicalAddress(w http.ResponseWriter, r *http.Request, ...)
- func (c *Controller) ListBranches(w http.ResponseWriter, r *http.Request, repository string, ...)
- func (c *Controller) ListGroupMembers(w http.ResponseWriter, r *http.Request, groupID string, ...)
- func (c *Controller) ListGroupPolicies(w http.ResponseWriter, r *http.Request, groupID string, ...)
- func (c *Controller) ListGroups(w http.ResponseWriter, r *http.Request, params ListGroupsParams)
- func (c *Controller) ListObjects(w http.ResponseWriter, r *http.Request, repository string, ref string, ...)
- func (c *Controller) ListPolicies(w http.ResponseWriter, r *http.Request, params ListPoliciesParams)
- func (c *Controller) ListRepositories(w http.ResponseWriter, r *http.Request, params ListRepositoriesParams)
- func (c *Controller) ListRepositoryRuns(w http.ResponseWriter, r *http.Request, repository string, ...)
- func (c *Controller) ListRunHooks(w http.ResponseWriter, r *http.Request, repository string, runID string, ...)
- func (c *Controller) ListTags(w http.ResponseWriter, r *http.Request, repository string, ...)
- func (c *Controller) ListUserCredentials(w http.ResponseWriter, r *http.Request, userID string, ...)
- func (c *Controller) ListUserGroups(w http.ResponseWriter, r *http.Request, userID string, ...)
- func (c *Controller) ListUserPolicies(w http.ResponseWriter, r *http.Request, userID string, ...)
- func (c *Controller) ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams)
- func (c *Controller) LogAction(ctx context.Context, action string)
- func (c *Controller) LogBranchCommits(w http.ResponseWriter, r *http.Request, repository string, branch string, ...)
- func (c *Controller) LogCommits(w http.ResponseWriter, r *http.Request, repository string, ref string, ...)
- func (c *Controller) Login(w http.ResponseWriter, r *http.Request, body LoginJSONRequestBody)
- func (c *Controller) Logout(w http.ResponseWriter, _ *http.Request)
- func (c *Controller) MergeIntoBranch(w http.ResponseWriter, r *http.Request, body MergeIntoBranchJSONRequestBody, ...)
- func (c *Controller) PrepareGarbageCollectionCommits(w http.ResponseWriter, r *http.Request, ...)
- func (c *Controller) ResetBranch(w http.ResponseWriter, r *http.Request, body ResetBranchJSONRequestBody, ...)
- func (c *Controller) RestoreRefs(w http.ResponseWriter, r *http.Request, body RestoreRefsJSONRequestBody, ...)
- func (c *Controller) RevertBranch(w http.ResponseWriter, r *http.Request, body RevertBranchJSONRequestBody, ...)
- func (c *Controller) SetGarbageCollectionRules(w http.ResponseWriter, r *http.Request, ...)
- func (c *Controller) Setup(w http.ResponseWriter, r *http.Request, body SetupJSONRequestBody)
- func (c *Controller) StageObject(w http.ResponseWriter, r *http.Request, body StageObjectJSONRequestBody, ...)
- func (c *Controller) StatObject(w http.ResponseWriter, r *http.Request, repository string, ref string, ...)
- func (c *Controller) UpdatePassword(w http.ResponseWriter, r *http.Request, body UpdatePasswordJSONRequestBody)
- func (c *Controller) UpdatePolicy(w http.ResponseWriter, r *http.Request, body UpdatePolicyJSONRequestBody, ...)
- func (c *Controller) UploadObject(w http.ResponseWriter, r *http.Request, repository string, branch string, ...)
- type InjectSnippetsFS
- type LoginRequestData
- type LoginResponseData
Constants ¶
const ( // DefaultMaxPerPage is the maximum amount of results returned for paginated queries to the API DefaultMaxPerPage int = 1000 UserContextKey contextKey = "user" DefaultMaxDeleteObjects = 1000 )
const ( DefaultLoginExpiration = 7 * 24 * time.Hour DefaultInvitePasswordExpiration = 6 * time.Hour DefaultResetPasswordExpiration = 20 * time.Minute JWTCookieName = "access_token" LoginAudience = "login" ResetPasswordAudience = "reset_password" )
const ( RequestIDHeaderName = "X-Request-ID" LoggerServiceName = "rest_api" BaseURL = "/api/v1" )
Variables ¶
Functions ¶
func AuthMiddleware ¶ added in v0.40.0
func GenerateJWTLogin ¶ added in v0.63.0
GenerateJWTLogin creates a jwt token which can be used for authentication during login only, i.e. it will not work for password reset. It supports backward compatibility for creating a login jwt. The audience is not set for login token. Any audience will make the token invalid for login. No email is passed to support the ability of login for users via user/access keys which don't have an email yet
func GenerateJWTResetPassword ¶ added in v0.63.0
func GenerateJWTResetPassword(secret []byte, email string, issuedAt, expiresAt time.Time) (string, error)
GenerateJWTResetPassword creates a jwt token with the field subject set the email passed.
func Int64Value ¶ added in v0.40.0
func InvalidAPIEndpointHandler ¶ added in v0.48.0
func InvalidAPIEndpointHandler(w http.ResponseWriter, _ *http.Request)
InvalidAPIEndpointHandler returns ErrInvalidAPIEndpoint, and is currently being used to ensure that routes under the pattern it is used with in chi.Router.Mount (i.e. /api/v1) are not accessible.
func IsStatusCodeOK ¶ added in v0.40.0
func MetricsMiddleware ¶ added in v0.40.0
func NewHandlerWithDefault ¶
func NewInjectIndexFS ¶ added in v0.66.0
func NewUIHandler ¶
func NewUIHandler(gatewayDomains []string, snippets []params.CodeSnippet) http.Handler
func OapiRequestValidatorWithOptions ¶ added in v0.40.0
func OapiRequestValidatorWithOptions(swagger *openapi3.Swagger, options *openapi3filter.Options) func(http.Handler) http.Handler
OapiRequestValidatorWithOptions Creates middleware to validate request by swagger spec. This middleware is good for net/http either since go-chi is 100% compatible with net/http. The original implementation can be found at https://github.com/deepmap/oapi-codegen/blob/master/pkg/chi-middleware/oapi_validate.go Used our own implementation in order to:
- Use the latest version kin-openapi (can switch back when oapi-codegen will be updated)
- For file upload wanted to skip body validation for two reasons: a. didn't find a way for the validator to accept any file content type b. didn't want the validator to read the complete request body for the specific request
func Serve ¶
func Serve( cfg *config.Config, catalog catalog.Interface, middlewareAuthenticator auth.Authenticator, controllerAuthenticator auth.Authenticator, authService auth.Service, blockAdapter block.Adapter, metadataManager auth.MetadataManager, migrator db.Migrator, collector stats.Collector, cloudMetadataProvider cloud.MetadataProvider, actions actionsHandler, auditChecker AuditChecker, logger logging.Logger, emailer *email.Emailer, gatewayDomains []string, snippets []params.CodeSnippet, ) http.Handler
func StringValue ¶ added in v0.40.0
func VerifyResetPasswordToken ¶ added in v0.63.0
Types ¶
type AuditChecker ¶ added in v0.57.0
type AuditChecker interface {
LastCheck() (*version.AuditResponse, error)
}
type Controller ¶
type Controller struct { Config *config.Config Catalog catalog.Interface Authenticator auth.Authenticator Auth auth.Service BlockAdapter block.Adapter MetadataManager auth.MetadataManager Migrator db.Migrator Collector stats.Collector CloudMetadataProvider cloud.MetadataProvider Actions actionsHandler AuditChecker AuditChecker Logger logging.Logger Emailer *email.Emailer }
func NewController ¶
func NewController( cfg *config.Config, catalog catalog.Interface, authenticator auth.Authenticator, authService auth.Service, blockAdapter block.Adapter, metadataManager auth.MetadataManager, migrator db.Migrator, collector stats.Collector, cloudMetadataProvider cloud.MetadataProvider, actions actionsHandler, auditChecker AuditChecker, logger logging.Logger, emailer *email.Emailer, ) *Controller
func (*Controller) AddGroupMembership ¶ added in v0.40.0
func (c *Controller) AddGroupMembership(w http.ResponseWriter, r *http.Request, groupID string, userID string)
func (*Controller) AttachPolicyToGroup ¶ added in v0.40.0
func (c *Controller) AttachPolicyToGroup(w http.ResponseWriter, r *http.Request, groupID string, policyID string)
func (*Controller) AttachPolicyToUser ¶ added in v0.40.0
func (c *Controller) AttachPolicyToUser(w http.ResponseWriter, r *http.Request, userID string, policyID string)
func (*Controller) Commit ¶ added in v0.40.0
func (c *Controller) Commit(w http.ResponseWriter, r *http.Request, body CommitJSONRequestBody, repository string, branch string, params CommitParams)
func (*Controller) CreateBranch ¶ added in v0.40.0
func (c *Controller) CreateBranch(w http.ResponseWriter, r *http.Request, body CreateBranchJSONRequestBody, repository string)
func (*Controller) CreateBranchProtectionRule ¶ added in v0.52.0
func (c *Controller) CreateBranchProtectionRule(w http.ResponseWriter, r *http.Request, body CreateBranchProtectionRuleJSONRequestBody, repository string)
func (*Controller) CreateCredentials ¶ added in v0.40.0
func (c *Controller) CreateCredentials(w http.ResponseWriter, r *http.Request, userID string)
func (*Controller) CreateGroup ¶ added in v0.40.0
func (c *Controller) CreateGroup(w http.ResponseWriter, r *http.Request, body CreateGroupJSONRequestBody)
func (*Controller) CreateMetaRange ¶ added in v0.65.0
func (c *Controller) CreateMetaRange(w http.ResponseWriter, r *http.Request, body CreateMetaRangeJSONRequestBody, repository string)
func (*Controller) CreatePolicy ¶ added in v0.40.0
func (c *Controller) CreatePolicy(w http.ResponseWriter, r *http.Request, body CreatePolicyJSONRequestBody)
func (*Controller) CreateRepository ¶ added in v0.40.0
func (c *Controller) CreateRepository(w http.ResponseWriter, r *http.Request, body CreateRepositoryJSONRequestBody, params CreateRepositoryParams)
func (*Controller) CreateSymlinkFile ¶ added in v0.40.0
func (c *Controller) CreateSymlinkFile(w http.ResponseWriter, r *http.Request, repository string, branch string, params CreateSymlinkFileParams)
func (*Controller) CreateTag ¶ added in v0.40.0
func (c *Controller) CreateTag(w http.ResponseWriter, r *http.Request, body CreateTagJSONRequestBody, repository string)
func (*Controller) CreateUser ¶ added in v0.40.0
func (c *Controller) CreateUser(w http.ResponseWriter, r *http.Request, body CreateUserJSONRequestBody)
func (*Controller) DeleteBranch ¶ added in v0.40.0
func (c *Controller) DeleteBranch(w http.ResponseWriter, r *http.Request, repository string, branch string)
func (*Controller) DeleteBranchProtectionRule ¶ added in v0.52.0
func (c *Controller) DeleteBranchProtectionRule(w http.ResponseWriter, r *http.Request, body DeleteBranchProtectionRuleJSONRequestBody, repository string)
func (*Controller) DeleteCredentials ¶ added in v0.40.0
func (c *Controller) DeleteCredentials(w http.ResponseWriter, r *http.Request, userID string, accessKeyID string)
func (*Controller) DeleteGroup ¶ added in v0.40.0
func (c *Controller) DeleteGroup(w http.ResponseWriter, r *http.Request, groupID string)
func (*Controller) DeleteGroupMembership ¶ added in v0.40.0
func (c *Controller) DeleteGroupMembership(w http.ResponseWriter, r *http.Request, groupID string, userID string)
func (*Controller) DeleteObject ¶ added in v0.40.0
func (c *Controller) DeleteObject(w http.ResponseWriter, r *http.Request, repository string, branch string, params DeleteObjectParams)
func (*Controller) DeleteObjects ¶ added in v0.57.0
func (c *Controller) DeleteObjects(w http.ResponseWriter, r *http.Request, body DeleteObjectsJSONRequestBody, repository string, branch string)
func (*Controller) DeletePolicy ¶ added in v0.40.0
func (c *Controller) DeletePolicy(w http.ResponseWriter, r *http.Request, policyID string)
func (*Controller) DeleteRepository ¶ added in v0.40.0
func (c *Controller) DeleteRepository(w http.ResponseWriter, r *http.Request, repository string)
func (*Controller) DeleteTag ¶ added in v0.40.0
func (c *Controller) DeleteTag(w http.ResponseWriter, r *http.Request, repository string, tag string)
func (*Controller) DeleteUser ¶ added in v0.40.0
func (c *Controller) DeleteUser(w http.ResponseWriter, r *http.Request, userID string)
func (*Controller) DetachPolicyFromGroup ¶ added in v0.40.0
func (c *Controller) DetachPolicyFromGroup(w http.ResponseWriter, r *http.Request, groupID string, policyID string)
func (*Controller) DetachPolicyFromUser ¶ added in v0.40.0
func (c *Controller) DetachPolicyFromUser(w http.ResponseWriter, r *http.Request, userID string, policyID string)
func (*Controller) DiffBranch ¶ added in v0.40.0
func (c *Controller) DiffBranch(w http.ResponseWriter, r *http.Request, repository string, branch string, params DiffBranchParams)
func (*Controller) DiffRefs ¶ added in v0.40.0
func (c *Controller) DiffRefs(w http.ResponseWriter, r *http.Request, repository string, leftRef string, rightRef string, params DiffRefsParams)
func (*Controller) DumpRefs ¶ added in v0.40.0
func (c *Controller) DumpRefs(w http.ResponseWriter, r *http.Request, repository string)
func (*Controller) ForgotPassword ¶ added in v0.63.0
func (c *Controller) ForgotPassword(w http.ResponseWriter, r *http.Request, body ForgotPasswordJSONRequestBody)
func (*Controller) GetAuthCapabilities ¶ added in v0.64.0
func (c *Controller) GetAuthCapabilities(w http.ResponseWriter, _ *http.Request)
func (*Controller) GetBranch ¶ added in v0.40.0
func (c *Controller) GetBranch(w http.ResponseWriter, r *http.Request, repository string, branch string)
func (*Controller) GetBranchProtectionRules ¶ added in v0.52.0
func (c *Controller) GetBranchProtectionRules(w http.ResponseWriter, r *http.Request, repository string)
func (*Controller) GetCommit ¶ added in v0.40.0
func (c *Controller) GetCommit(w http.ResponseWriter, r *http.Request, repository string, commitID string)
func (*Controller) GetCredentials ¶ added in v0.40.0
func (c *Controller) GetCredentials(w http.ResponseWriter, r *http.Request, userID string, accessKeyID string)
func (*Controller) GetCurrentUser ¶ added in v0.40.0
func (c *Controller) GetCurrentUser(w http.ResponseWriter, r *http.Request)
func (*Controller) GetGarbageCollectionRules ¶ added in v0.43.0
func (c *Controller) GetGarbageCollectionRules(w http.ResponseWriter, r *http.Request, repository string)
func (*Controller) GetGroup ¶ added in v0.40.0
func (c *Controller) GetGroup(w http.ResponseWriter, r *http.Request, groupID string)
func (*Controller) GetLakeFSVersion ¶ added in v0.43.0
func (c *Controller) GetLakeFSVersion(w http.ResponseWriter, r *http.Request)
func (*Controller) GetMetaRange ¶ added in v0.40.0
func (c *Controller) GetMetaRange(w http.ResponseWriter, r *http.Request, repository string, metaRange string)
func (*Controller) GetObject ¶ added in v0.40.0
func (c *Controller) GetObject(w http.ResponseWriter, r *http.Request, repository string, ref string, params GetObjectParams)
func (*Controller) GetPhysicalAddress ¶ added in v0.40.0
func (c *Controller) GetPhysicalAddress(w http.ResponseWriter, r *http.Request, repository string, branch string, params GetPhysicalAddressParams)
func (*Controller) GetPolicy ¶ added in v0.40.0
func (c *Controller) GetPolicy(w http.ResponseWriter, r *http.Request, policyID string)
func (*Controller) GetRange ¶ added in v0.40.0
func (c *Controller) GetRange(w http.ResponseWriter, r *http.Request, repository string, pRange string)
func (*Controller) GetRepository ¶ added in v0.40.0
func (c *Controller) GetRepository(w http.ResponseWriter, r *http.Request, repository string)
func (*Controller) GetRun ¶ added in v0.40.0
func (c *Controller) GetRun(w http.ResponseWriter, r *http.Request, repository string, runID string)
func (*Controller) GetRunHookOutput ¶ added in v0.40.0
func (c *Controller) GetRunHookOutput(w http.ResponseWriter, r *http.Request, repository string, runID string, hookRunID string)
func (*Controller) GetSetupState ¶ added in v0.56.0
func (c *Controller) GetSetupState(w http.ResponseWriter, r *http.Request)
func (*Controller) GetStorageConfig ¶ added in v0.42.0
func (c *Controller) GetStorageConfig(w http.ResponseWriter, r *http.Request)
func (*Controller) GetTag ¶ added in v0.40.0
func (c *Controller) GetTag(w http.ResponseWriter, r *http.Request, repository string, tag string)
func (*Controller) GetUnderlyingProperties ¶ added in v0.40.0
func (c *Controller) GetUnderlyingProperties(w http.ResponseWriter, r *http.Request, repository string, ref string, params GetUnderlyingPropertiesParams)
func (*Controller) GetUser ¶ added in v0.40.0
func (c *Controller) GetUser(w http.ResponseWriter, r *http.Request, userID string)
func (*Controller) HealthCheck ¶ added in v0.40.0
func (c *Controller) HealthCheck(w http.ResponseWriter, _ *http.Request)
func (*Controller) IngestRange ¶ added in v0.65.0
func (c *Controller) IngestRange(w http.ResponseWriter, r *http.Request, body IngestRangeJSONRequestBody, repository string)
func (*Controller) LinkPhysicalAddress ¶ added in v0.40.0
func (c *Controller) LinkPhysicalAddress(w http.ResponseWriter, r *http.Request, body LinkPhysicalAddressJSONRequestBody, repository string, branch string, params LinkPhysicalAddressParams)
func (*Controller) ListBranches ¶ added in v0.40.0
func (c *Controller) ListBranches(w http.ResponseWriter, r *http.Request, repository string, params ListBranchesParams)
func (*Controller) ListGroupMembers ¶ added in v0.40.0
func (c *Controller) ListGroupMembers(w http.ResponseWriter, r *http.Request, groupID string, params ListGroupMembersParams)
func (*Controller) ListGroupPolicies ¶ added in v0.40.0
func (c *Controller) ListGroupPolicies(w http.ResponseWriter, r *http.Request, groupID string, params ListGroupPoliciesParams)
func (*Controller) ListGroups ¶ added in v0.40.0
func (c *Controller) ListGroups(w http.ResponseWriter, r *http.Request, params ListGroupsParams)
func (*Controller) ListObjects ¶ added in v0.40.0
func (c *Controller) ListObjects(w http.ResponseWriter, r *http.Request, repository string, ref string, params ListObjectsParams)
func (*Controller) ListPolicies ¶ added in v0.40.0
func (c *Controller) ListPolicies(w http.ResponseWriter, r *http.Request, params ListPoliciesParams)
func (*Controller) ListRepositories ¶ added in v0.40.0
func (c *Controller) ListRepositories(w http.ResponseWriter, r *http.Request, params ListRepositoriesParams)
func (*Controller) ListRepositoryRuns ¶ added in v0.40.0
func (c *Controller) ListRepositoryRuns(w http.ResponseWriter, r *http.Request, repository string, params ListRepositoryRunsParams)
func (*Controller) ListRunHooks ¶ added in v0.40.0
func (c *Controller) ListRunHooks(w http.ResponseWriter, r *http.Request, repository string, runID string, params ListRunHooksParams)
func (*Controller) ListTags ¶ added in v0.40.0
func (c *Controller) ListTags(w http.ResponseWriter, r *http.Request, repository string, params ListTagsParams)
func (*Controller) ListUserCredentials ¶ added in v0.40.0
func (c *Controller) ListUserCredentials(w http.ResponseWriter, r *http.Request, userID string, params ListUserCredentialsParams)
func (*Controller) ListUserGroups ¶ added in v0.40.0
func (c *Controller) ListUserGroups(w http.ResponseWriter, r *http.Request, userID string, params ListUserGroupsParams)
func (*Controller) ListUserPolicies ¶ added in v0.40.0
func (c *Controller) ListUserPolicies(w http.ResponseWriter, r *http.Request, userID string, params ListUserPoliciesParams)
func (*Controller) ListUsers ¶ added in v0.40.0
func (c *Controller) ListUsers(w http.ResponseWriter, r *http.Request, params ListUsersParams)
func (*Controller) LogBranchCommits ¶ added in v0.40.0
func (c *Controller) LogBranchCommits(w http.ResponseWriter, r *http.Request, repository string, branch string, params LogBranchCommitsParams)
LogBranchCommits deprecated replaced by LogCommits
func (*Controller) LogCommits ¶ added in v0.40.0
func (c *Controller) LogCommits(w http.ResponseWriter, r *http.Request, repository string, ref string, params LogCommitsParams)
func (*Controller) Login ¶ added in v0.40.0
func (c *Controller) Login(w http.ResponseWriter, r *http.Request, body LoginJSONRequestBody)
func (*Controller) Logout ¶ added in v0.40.0
func (c *Controller) Logout(w http.ResponseWriter, _ *http.Request)
func (*Controller) MergeIntoBranch ¶ added in v0.40.0
func (c *Controller) MergeIntoBranch(w http.ResponseWriter, r *http.Request, body MergeIntoBranchJSONRequestBody, repository string, sourceRef string, destinationBranch string)
func (*Controller) PrepareGarbageCollectionCommits ¶ added in v0.43.0
func (c *Controller) PrepareGarbageCollectionCommits(w http.ResponseWriter, r *http.Request, body PrepareGarbageCollectionCommitsJSONRequestBody, repository string)
func (*Controller) ResetBranch ¶ added in v0.40.0
func (c *Controller) ResetBranch(w http.ResponseWriter, r *http.Request, body ResetBranchJSONRequestBody, repository string, branch string)
func (*Controller) RestoreRefs ¶ added in v0.40.0
func (c *Controller) RestoreRefs(w http.ResponseWriter, r *http.Request, body RestoreRefsJSONRequestBody, repository string)
func (*Controller) RevertBranch ¶ added in v0.40.0
func (c *Controller) RevertBranch(w http.ResponseWriter, r *http.Request, body RevertBranchJSONRequestBody, repository string, branch string)
func (*Controller) SetGarbageCollectionRules ¶ added in v0.43.0
func (c *Controller) SetGarbageCollectionRules(w http.ResponseWriter, r *http.Request, body SetGarbageCollectionRulesJSONRequestBody, repository string)
func (*Controller) Setup ¶ added in v0.40.0
func (c *Controller) Setup(w http.ResponseWriter, r *http.Request, body SetupJSONRequestBody)
func (*Controller) StageObject ¶ added in v0.40.0
func (c *Controller) StageObject(w http.ResponseWriter, r *http.Request, body StageObjectJSONRequestBody, repository string, branch string, params StageObjectParams)
func (*Controller) StatObject ¶ added in v0.40.0
func (c *Controller) StatObject(w http.ResponseWriter, r *http.Request, repository string, ref string, params StatObjectParams)
func (*Controller) UpdatePassword ¶ added in v0.63.0
func (c *Controller) UpdatePassword(w http.ResponseWriter, r *http.Request, body UpdatePasswordJSONRequestBody)
func (*Controller) UpdatePolicy ¶ added in v0.40.0
func (c *Controller) UpdatePolicy(w http.ResponseWriter, r *http.Request, body UpdatePolicyJSONRequestBody, policyID string)
func (*Controller) UploadObject ¶ added in v0.40.0
func (c *Controller) UploadObject(w http.ResponseWriter, r *http.Request, repository string, branch string, params UploadObjectParams)
type InjectSnippetsFS ¶ added in v0.66.0
type LoginRequestData ¶
type LoginResponseData ¶
type LoginResponseData struct {
Token string `json:"token"`
}