authorizedkeys

package
v14.39.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package authorizedkeys provides functionality for interacting with authorized keys.

Index

Constants

View Source
const (
	// AuthorizedKeysPath represents the path to authorized keys endpoint
	AuthorizedKeysPath = "/authorized_keys"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a client for interacting with authorized keys

func NewClient

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

NewClient creates a new instance of the authorized keys client

func (*Client) GetByKey

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

GetByKey retrieves authorized keys by key

type Response

type Response struct {
	ID  int64  `json:"id"`
	Key string `json:"key"`
}

Response represents the response structure for authorized keys

Jump to

Keyboard shortcuts

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