entities

package
v0.10.0-beta Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 1 Imported by: 3

Documentation

Overview

Copyright 2024 BeyondTrust. All rights reserved. Package entities implements DTO's used by Beyondtrust Secret Safe API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccountDetails added in v0.8.2

type AccountDetails struct {
	AccountName                       string `validate:"required,max=245"`
	Password                          string `validate:"required_if=AutoManagementFlag false"`
	DomainName                        string `validate:"max=50"`
	UserPrincipalName                 string `validate:"omitempty,max=500"`
	SAMAccountName                    string `validate:"omitempty,max=20"`
	DistinguishedName                 string `validate:"omitempty,max=1000"`
	PrivateKey                        string `validate:"omitempty"`
	Passphrase                        string `validate:"omitempty,required_if=PrivateKey Encrypted"`
	PasswordFallbackFlag              bool   `validate:"omitempty"`
	LoginAccountFlag                  bool   `validate:"omitempty"`
	Description                       string `validate:"omitempty,max=1024"`
	PasswordRuleID                    int    `validate:"omitempty,gte=0"`
	ApiEnabled                        bool   `validate:"omitempty"`
	ReleaseNotificationEmail          string `validate:"omitempty,email,max=255"`
	ChangeServicesFlag                bool   `validate:"omitempty"`
	RestartServicesFlag               bool   `validate:"omitempty"`
	ChangeTasksFlag                   bool   `validate:"omitempty"`
	ReleaseDuration                   int    `validate:"omitempty,min=1,max=525600,ltefield=MaxReleaseDuration"`
	MaxReleaseDuration                int    `validate:"omitempty,min=1,max=525600"`
	ISAReleaseDuration                int    `validate:"omitempty,min=1,max=525600"`
	MaxConcurrentRequests             int    `validate:"omitempty,min=0,max=999"`
	AutoManagementFlag                bool   `validate:"omitempty"`
	DSSAutoManagementFlag             bool   `validate:"omitempty"`
	CheckPasswordFlag                 bool   `validate:"omitempty"`
	ChangePasswordAfterAnyReleaseFlag bool   `validate:"omitempty"`
	ResetPasswordOnMismatchFlag       bool   `validate:"omitempty"`
	ChangeFrequencyType               string `validate:"omitempty,oneof=first last xdays"`
	ChangeFrequencyDays               int    `validate:"omitempty,min=1,max=999"`
	ChangeTime                        string `validate:"omitempty,datetime=15:04"`
	NextChangeDate                    string `validate:"omitempty,datetime=2006-01-02"`
	UseOwnCredentials                 bool   `validate:"omitempty"`
	WorkgroupID                       *int   `validate:"omitempty"`
	ChangeWindowsAutoLogonFlag        bool   `validate:"omitempty"`
	ChangeComPlusFlag                 bool   `validate:"omitempty"`
	ChangeDComFlag                    bool   `validate:"omitempty"`
	ChangeSComFlag                    bool   `validate:"omitempty"`
	ObjectID                          string `validate:"omitempty,max=36"`
}

type CreateManagedAccountsResponse added in v0.8.2

type CreateManagedAccountsResponse struct {
	ManagedAccountID int
	ManagedSystemID  int
	AccountName      string
}

type CreateSecretResponse

type CreateSecretResponse struct {
	Id          string
	Title       string
	Description string
	FolderId    string
}

type FolderResponse

type FolderResponse struct {
	Id          string
	Name        string
	Description string
}

type GetTokenResponse

type GetTokenResponse struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	TokenType   string `json:"token_type"`
	Scope       string `json:"scope"`
}

GetTokenResponse responsible for token response data.

type ManagedAccount

type ManagedAccount struct {
	SystemId  int
	AccountId int
}

ManagedAccount responsible for managed account response data.

type ManagedSystemResponse added in v0.8.2

type ManagedSystemResponse struct {
	ManagedSystemID int
	SystemName      string
}

type OwnerDetails

type OwnerDetails struct {
	OwnerId int    `validate:"required,min=1,max=2147483647"`
	Owner   string `validate:"omitempty"`
	Email   string `validate:"omitempty"`
}

type Secret

type Secret struct {
	Id         string
	Title      string
	Password   string
	SecretType string
}

Secret responsible for secrets-safe response data.

type SecretCredentialDetails

type SecretCredentialDetails struct {
	Title       string         `validate:"required,max=256"`
	Description string         `validate:"omitempty"`
	Username    string         `validate:"required"`
	Password    string         `validate:"required"`
	OwnerId     int            `validate:"omitempty"`
	OwnerType   string         `validate:"omitempty"`
	Owners      []OwnerDetails `validate:"required"`
	Notes       string         `validate:"omitempty,max=4000"`
	Urls        []UrlDetails   `validate:"omitempty"`
}

type SecretFileDetails

type SecretFileDetails struct {
	Title       string         `validate:"required,max=256"`
	Description string         `validate:"omitempty"`
	OwnerId     int            `validate:"omitempty"`
	OwnerType   string         `validate:"omitempty"`
	Owners      []OwnerDetails `validate:"required"`
	Notes       string         `validate:"omitempty,max=4000"`
	FileName    string         `validate:"required,max=256"`
	FileContent string         `validate:"required,max=256"`
	Urls        []UrlDetails   `validate:"omitempty"`
}

type SecretTextDetails

type SecretTextDetails struct {
	Title       string         `validate:"required,max=256"`
	Description string         `validate:"omitempty"`
	Text        string         `validate:"required,max=4096"`
	OwnerId     int            `validate:"omitempty"`
	OwnerType   string         `validate:"omitempty"`
	Owners      []OwnerDetails `validate:"required"`
	Notes       string         `validate:"omitempty,max=4000"`
	FolderId    uuid.UUID      `validate:"required"`
	Urls        []UrlDetails   `validate:"omitempty"`
}

type SignApinResponse

type SignApinResponse struct {
	UserId       int    `json:"UserId"`
	EmailAddress string `json:"EmailAddress"`
	UserName     string `json:"UserName"`
	Name         string `json:"Name"`
}

SignApinResponse responsbile for API sign in information.

type UrlDetails

type UrlDetails struct {
	Id           uuid.UUID `validate:"omitempty,uuid"`
	CredentialId uuid.UUID `validate:"omitempty,uuid"`
	Url          string    `validate:"required,max=2048,url"`
}

Jump to

Keyboard shortcuts

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