token

package
v0.0.0-...-b2b50b5 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenService

type AccessTokenService struct {
	ArtDetails auth.ArtifactoryDetails
	// contains filtered or unexported fields
}

func (*AccessTokenService) CreateToken

func (*AccessTokenService) GetArtifactoryDetails

func (s *AccessTokenService) GetArtifactoryDetails() auth.ArtifactoryDetails

func (*AccessTokenService) RevokeToken

func (s *AccessTokenService) RevokeToken(req *RevokeTokenRequest) error

func (*AccessTokenService) SetArtifactoryDetails

func (s *AccessTokenService) SetArtifactoryDetails(rt auth.ArtifactoryDetails)

type CreateTokenRequest

type CreateTokenRequest struct {
	GrantType   string
	Username    string
	Scope       string
	ExpiresIn   int64
	Refreshable bool
}

type CreateTokenResponse

type CreateTokenResponse struct {
	AccessToken  string `json:"access_token"`
	ExpiresIn    int64  `json:"expires_in"`
	Scope        string `json:"scope"`
	TokenType    string `json:"token_type"`
	RefreshToken string `json:"refresh_token"`
}

type RevokeTokenRequest

type RevokeTokenRequest struct {
	Token   string
	TokenID string
}

Jump to

Keyboard shortcuts

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