Documentation ¶
Overview ¶
Package client contains a client implementation for interfacing with the Phobos server
Index ¶
Constants ¶
View Source
const ServiceDiscoveryPath = "/.well-known/phobos.json"
ServiceDiscoveryPath is the path to the service discovery document.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct { AuthSettingsClient pb.AuthSettingsClient OrganizationsClient pb.OrganizationsClient JobsClient pb.JobsClient TeamsClient pb.TeamsClient ProjectsClient pb.ProjectsClient PipelinesClient pb.PipelinesClient PipelineTemplatesClient pb.PipelineTemplatesClient AgentsClient pb.AgentsClient EnvironmentsClient pb.EnvironmentsClient ServiceAccountsClient pb.ServiceAccountsClient LifecycleTemplatesClient pb.LifecycleTemplatesClient ReleaseLifecyclesClient pb.ReleaseLifecyclesClient ReleasesClient pb.ReleasesClient PluginRegistryClient pb.PluginRegistryClient VCSProvidersClient pb.VCSProvidersClient VersionClient pb.VersionClient // contains filtered or unexported fields }
Client is the gateway to interact with the Phobos API.
type Config ¶
type Config struct { TokenGetter TokenGetter HTTPEndpoint string TLSSkipVerify bool }
Config is used to configure the client
type GRPCDiscoveryDocument ¶
type GRPCDiscoveryDocument struct { Host string `json:"host"` TransportSecurity string `json:"transport_security"` Port string `json:"port"` }
GRPCDiscoveryDocument represents the contents of the GRPC discovery document.
func NewGRPCDiscoveryDocument ¶
func NewGRPCDiscoveryDocument(ctx context.Context, endpoint string) (*GRPCDiscoveryDocument, error)
NewGRPCDiscoveryDocument returns a new GRPC discovery document. The HTTP get request of the discovery document is done in this function.
func (*GRPCDiscoveryDocument) HasTransportSecurity ¶
func (d *GRPCDiscoveryDocument) HasTransportSecurity() bool
HasTransportSecurity returns true if the GRPC endpoint has transport security enabled.
Click to show internal directories.
Click to hide internal directories.