Documentation
¶
Index ¶
Constants ¶
const ( // DefaultHost is the default Host // found in Meta (info) section of spec file DefaultHost string = "localhost" // DefaultBasePath is the default BasePath // found in Meta (info) section of spec file DefaultBasePath string = "/" )
Variables ¶
var Default = NewHTTPClient(nil)
Default polyaxon sdk HTTP client.
var DefaultSchemes = []string{"http", "https"}
DefaultSchemes are the default schemes found in Meta (info) section of spec file
Functions ¶
This section is empty.
Types ¶
type PolyaxonSdk ¶
type PolyaxonSdk struct { AgentsV1 agents_v1.ClientService ArtifactsStoresV1 artifacts_stores_v1.ClientService AuthV1 auth_v1.ClientService ConnectionsV1 connections_v1.ClientService DashboardsV1 dashboards_v1.ClientService OrganizationsV1 organizations_v1.ClientService PresetsV1 presets_v1.ClientService ProjectDashboardsV1 project_dashboards_v1.ClientService ProjectSearchesV1 project_searches_v1.ClientService ProjectsV1 projects_v1.ClientService QueuesV1 queues_v1.ClientService RunsV1 runs_v1.ClientService SchemasV1 schemas_v1.ClientService SearchesV1 searches_v1.ClientService ServiceAccountsV1 service_accounts_v1.ClientService TagsV1 tags_v1.ClientService TeamsV1 teams_v1.ClientService UsersV1 users_v1.ClientService VersionsV1 versions_v1.ClientService Transport runtime.ClientTransport }
PolyaxonSdk is a client for polyaxon sdk
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *PolyaxonSdk
New creates a new polyaxon sdk client
func NewHTTPClient ¶
func NewHTTPClient(formats strfmt.Registry) *PolyaxonSdk
NewHTTPClient creates a new polyaxon sdk HTTP client.
func NewHTTPClientWithConfig ¶
func NewHTTPClientWithConfig(formats strfmt.Registry, cfg *TransportConfig) *PolyaxonSdk
NewHTTPClientWithConfig creates a new polyaxon sdk HTTP client, using a customizable transport config.
func (*PolyaxonSdk) SetTransport ¶
func (c *PolyaxonSdk) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client and all its subresources
type TransportConfig ¶
TransportConfig contains the transport related info, found in the meta section of the spec file.
func DefaultTransportConfig ¶
func DefaultTransportConfig() *TransportConfig
DefaultTransportConfig creates a TransportConfig with the default settings taken from the meta section of the spec file.
func (*TransportConfig) WithBasePath ¶
func (cfg *TransportConfig) WithBasePath(basePath string) *TransportConfig
WithBasePath overrides the default basePath, provided by the meta section of the spec file.
func (*TransportConfig) WithHost ¶
func (cfg *TransportConfig) WithHost(host string) *TransportConfig
WithHost overrides the default host, provided by the meta section of the spec file.
func (*TransportConfig) WithSchemes ¶
func (cfg *TransportConfig) WithSchemes(schemes []string) *TransportConfig
WithSchemes overrides the default schemes, provided by the meta section of the spec file.