authorizedcerts

package
v14.40.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package authorizedcerts implements functions for authorizing users with ssh certificates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client wraps a gitlab client and its associated config

func NewClient

func NewClient(config *config.Config) (*Client, error)

NewClient instantiates a Client with config

func (*Client) GetByKey

func (c *Client) GetByKey(ctx context.Context, userID, fingerprint string) (*Response, error)

GetByKey makes a request to authorized_certs for the namespace configured with a cert that matches fingerprint

type Response

type Response struct {
	Username  string `json:"username"`
	Namespace string `json:"namespace"`
}

Response contains the json response from authorized_certs

Jump to

Keyboard shortcuts

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