# Packages
No description provided by the author
Package targettest provides a test target subtype for use by the target package.
Package tcp provides a Target subtype for a TCP Target.
# Functions
GetOpts - iterate the inbound Options and return a struct.
List lists up to page size targets, filtering out entries that do not pass the filter item function.
ListPage lists up to page size targets, filtering out entries that do not pass the filter item function.
ListRefresh lists up to page size targets, filtering out entries that do not pass the filter item function.
ListRefreshPage lists up to page size targets, filtering out entries that do not pass the filter item function.
New creates a Target of the given subtype and projectId.
NewAddress creates a new in memory address.
NewCredentialLibrary creates a new in memory CredentialLibrary representing the relationship between targetId and credentialLibraryId.
NewRepository creates a new target Repository.
NewStaticCredential creates a new in memory StaticCredential representing the relationship between targetId and credentialId.
NewTargetHostSet creates a new in memory target host set.
Prefixes returns the list of all known target Prefixes.
Register registers repository hooks and the prefixes for a provided Subtype.
SubtypeFromId returns the Subtype from the provided id if the id's prefix was registered with a Subtype.
SubtypeFromType returns the Subtype from the provided string or if no Subtype was registered with that string Unknown is returned.
TestCredentialLibrary creates a CredentialLibrary for targetId and libraryId with the credential purpose of brokered.
TestEstimatedCount exposes the repo estimatedCount method for testing purposes.
TestListDeletedIds exposes the repo listDeletedIds method for testing purposes.
TestListTargets exposes the repo listTargets method for testing purposes.
TestListTargetsRefresh exposes the repo listTargetsRefresh method for testing purposes.
TestNewCredentialLibrary creates a new in memory CredentialLibrary representing the relationship between targetId and credentialLibraryId with the given purpose.
TestNewStaticCredential creates a new in memory StaticCredential representing the relationship between targetId and credentialId with the given purpose.
TestNewTargetAddress creates a new in memory TargetAddress representing the association between a Target and network address.
TestTargetAddress creates am association for targetId and a given address value.
WithAddress provides an optional network address.
WithAliases provides an option to provide aliases.
WithCredentialLibraries provides an option for providing a list of credential libraries.
WithDefaultClientPort provides an option to specify the default client listening port.
WithDefaultPort provides an option to specify the default target port.
WithDescription provides an optional description.
WithEgressWorkerFilter provides an optional egress worker filter.
WithEnableSessionRecording provides an option to enable session recording on the target.
WithHostSources provides an option for providing a list of host source ids.
WithIngressWorkerFilter provides an optional ingress worker filter.
WithLimit provides an option to provide a limit.
WithName provides an option to search by a friendly name.
WithNetResolver provides an option to specify a custom DNS resolver.
WithPermissions is used by this repo to restrict a list request's results based on the given set of permissions.
WithProjectId provides an option to search by a project id.
WithProjectId provides an option to search by multiple project id.
WithProjectId provides an option to search by a project name.
WithPublicId provides an optional public id.
No description provided by the author
No description provided by the author
WithStartPageAfterItem is used to paginate over the results.
WithStaticCredentials provides an option for providing a list of static credentials.
WithStorageBucketId provides an option to set a storage bucket on a target.
WithTargetIds provides an option to search by specific target IDs.
WithTestWorkerFilter provides an optional worker filter used only in testing.
WithType provides an option to search by a target type.
WithUserId provides an option to search by a user public id.
WithWorkerFilter provides an optional worker filter.
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
Credential source type values.
Credential source type values.
# Structs
An Address represents the relationship between a target and a network address.
A CredentialLibrary is a CredentialSource that represents the relationship between a target and a credential library.
CredentialSources contains slices of credential publicIds per purpose to be attached to the target.
Repository is the target database repository.
A StaticCredential is a CredentialSource that represents the relationship between a target and a static credential.
A TargetCredentialSource represents the relationship between a target and a credential library and includes the id of the credential store that the library is a part of and the library's name and description.
No description provided by the author
TargetSet is returned from most repo operations as the target's host set.
# Interfaces
Cloneable provides a cloning interface.
CredentialSource is an interface that can be implemented by both a library and a singular credential.
HostSource is an interface that can be implemented by both a set and a singular host.
Target is a commmon interface for all target subtypes.
# Type aliases
AllocFunc is a function that creates an in-memory Target.
CredentialSourceType is the type of credential source.
NewFunc is a function that creates a Target with the provided project and options.
Option - how Options are passed as arguments.
RepositoryFactory enables `target.Repository` object instantiation, and is used by the various service packages/controller object to do so.
VetCredentialSourcesFunc is a function that checks the given CredentialLibraries and StaticCredentials to ensure that they are valid for a Target subtype.
VetForUpdateFunc is a function that checks the given Target and field mask paths are valid and be used to update a target in the Repository.
VetFunc is a function that checks the given Target to ensure it can be used by the Repository.