utils

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LOGGER = logging.MustGetLogger("vault")

Functions

This section is empty.

Types

type Account

type Account struct {
	AccountID          string
	InternalProperties []InternalProperties
	Properties         []Properties
}

type Accounts

type Accounts struct {
	Count    uint
	Accounts []Account
}

type InternalProperties

type InternalProperties struct {
	Key   string
	Value string
}

type Member

type Member struct {
	Permissions interface{}
	UserName    string
}

type Properties

type Properties struct {
	Key   string
	Value string
}

type Safe

type Safe struct {
	Description               string
	ManagingCPM               string
	NumberOfDaysRetention     uint
	NumberOfVersionsRetention uint
	OLACEnabled               bool
	SafeName                  string
}

type SafeList

type SafeList struct {
	List []Safe `json:"GetSafesResult"`
}

type SafeMemberList

type SafeMemberList struct {
	Members []Member
}

type Secret

type Secret struct {
	Content                 string
	PolicyID                string
	CreationMethod          string
	Folder                  string
	Address                 string
	Name                    string
	Safe                    string
	DeviceType              string
	UserName                string
	PasswordChangeInProcess string
}

type Session

type Session struct {
	CyberArkLogonResult string
	BaseURL             string
	CertPath            string
	KeyPath             string
}

func (*Session) Get

func (vs *Session) Get(url string, session string) ([]byte, error)

func (*Session) Post

func (vs *Session) Post(url string, session string, payload *strings.Reader) ([]byte, error)

func (*Session) Put

func (vs *Session) Put(url string, session string, payload *strings.Reader, additionHeader string) ([]byte, error)

Jump to

Keyboard shortcuts

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