client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package client contains the identity agent client.

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 is an identity agent client.

func NewClient

func NewClient(config *config.Config, ccache *credentials.CCache, krb5conf *krbConfig.Config) *Client

NewClient returns a new Client.

func (*Client) GetCCache

func (c *Client) GetCCache() *credentials.CCache

GetCCache returns the kerberos CCache in the client.

func (*Client) GetKrb5Conf

func (c *Client) GetKrb5Conf() *krbConfig.Config

GetKrb5Conf returns the kerberos config in the client.

func (*Client) Results

func (c *Client) Results() chan status.LoginState

Results returns the result channel.

func (*Client) SetCCache

func (c *Client) SetCCache(ccache *credentials.CCache)

SetCCache sets the kerberos CCache in the client.

func (*Client) SetKrb5Conf

func (c *Client) SetKrb5Conf(conf *krbConfig.Config)

SetKrb5Conf sets the kerberos config in the client.

func (*Client) Start

func (c *Client) Start()

Start starts the client.

func (*Client) Stop

func (c *Client) Stop()

Stop stops the client.

type Error

type Error int8

Error is an identity agent client error.

const (
	UserNotSet         Error = 001
	TokenError         Error = 002
	CommunicationError Error = 100
	BackendError       Error = 101
)

Errors.

type LoginResponse

type LoginResponse struct {
	KeepAlive int `json:"keep-alive"`
}

LoginResponse is a login response.

Jump to

Keyboard shortcuts

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