pkg

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHInfoResponse

type SSHInfoResponse struct {
	api.SSHInfoResponse
	TokenUpdate *my.MytokenResponse `json:"token_update,omitempty"`
}

SSHInfoResponse is a type for the response about a user's ssh keys

func (*SSHInfoResponse) SetTokenUpdate

func (info *SSHInfoResponse) SetTokenUpdate(tokenUpdate *my.MytokenResponse)

SetTokenUpdate implements the pkg.TokenUpdatableResponse interface

type SSHKeyAddRequest

type SSHKeyAddRequest struct {
	api.SSHKeyAddRequest
	Mytoken      universalmytoken.UniversalMytoken `json:"mytoken" xml:"mytoken" form:"mytoken"`
	Restrictions restrictions.Restrictions         `json:"restrictions" form:"restrictions" xml:"restrictions"`
}

SSHKeyAddRequest is a type for a request to add an ssh key

type SSHKeyAddResponse

type SSHKeyAddResponse struct {
	api.SSHKeyAddResponse
	TokenUpdate *my.MytokenResponse `json:"token_update,omitempty"`
}

SSHKeyAddResponse is a type for the (first) response to an SSHKeyAddRequest

func (*SSHKeyAddResponse) SetTokenUpdate

func (info *SSHKeyAddResponse) SetTokenUpdate(tokenUpdate *my.MytokenResponse)

SetTokenUpdate implements the pkg.TokenUpdatableResponse interface

type SSHKeyDeleteRequest

type SSHKeyDeleteRequest struct {
	api.SSHKeyDeleteRequest
	Mytoken universalmytoken.UniversalMytoken `json:"mytoken" xml:"mytoken" form:"mytoken"`
}

SSHKeyDeleteRequest is a type for a request to delete an ssh key

Jump to

Keyboard shortcuts

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