Documentation ¶
Index ¶
- Constants
- func CreateArtifactPath(runID string, nodeID string, artifactName string) string
- func GetBoolConfigWithDefault(configName string, value bool) bool
- func GetBoolFromStringWithDefault(value string, defaultValue bool) bool
- func GetDurationConfig(configName string) time.Duration
- func GetExperimentIDFromAPIResourceReferences(resourceRefs []*api.ResourceReference) string
- func GetMapConfig(configName string) map[string]string
- func GetNamespaceFromAPIResourceReferences(resourceRefs []*api.ResourceReference) string
- func GetPodNamespace() string
- func GetStringConfig(configName string) string
- func GetStringConfigWithDefault(configName, value string) string
- func IsCacheEnabled() string
- func IsMultiUserMode() bool
- type FilterContext
- type PaginationContext
- type ReferenceKey
- type Relationship
- type ResourceType
- type Token
Constants ¶
View Source
const ( MultiUserMode string = "MULTIUSER" PodNamespace string = "POD_NAMESPACE" CacheEnabled string = "CacheEnabled" DefaultPipelineRunnerServiceAccount string = "DefaultPipelineRunnerServiceAccount" )
View Source
const (
GoogleIAPUserIdentityHeader string = "x-goog-authenticated-user-email"
)
Variables ¶
This section is empty.
Functions ¶
func CreateArtifactPath ¶
CreateArtifactPath creates artifact resource path.
func GetDurationConfig ¶
func GetExperimentIDFromAPIResourceReferences ¶
func GetExperimentIDFromAPIResourceReferences(resourceRefs []*api.ResourceReference) string
func GetMapConfig ¶
func GetNamespaceFromAPIResourceReferences ¶
func GetNamespaceFromAPIResourceReferences(resourceRefs []*api.ResourceReference) string
func GetPodNamespace ¶
func GetPodNamespace() string
func GetStringConfig ¶
func IsCacheEnabled ¶
func IsCacheEnabled() string
func IsMultiUserMode ¶
func IsMultiUserMode() bool
Types ¶
type FilterContext ¶
type FilterContext struct { // Filter by a specific reference key *ReferenceKey }
type PaginationContext ¶
type ReferenceKey ¶
type ReferenceKey struct { Type ResourceType ID string }
type Relationship ¶
type Relationship string
const ( Owner Relationship = "Owner" Creator Relationship = "Creator" )
func ToModelRelationship ¶
func ToModelRelationship(r api.Relationship) (Relationship, error)
type ResourceType ¶
type ResourceType string
const ( Experiment ResourceType = "Experiment" Job ResourceType = "Job" Run ResourceType = "Run" Pipeline ResourceType = "pipeline" PipelineVersion ResourceType = "PipelineVersion" Namespace ResourceType = "Namespace" )
func ToModelResourceType ¶
func ToModelResourceType(apiType api.ResourceType) (ResourceType, error)
type Token ¶
type Token struct { // The value of the sorted field of the next row to be returned. SortByFieldValue string // The value of the key field of the next row to be returned. KeyFieldValue string }
A deserialized token. Assuming the list request is sorted by name, a typical token should be {SortByFieldValue:"foo", KeyFieldValue:"2"} The corresponding list query would be select * from table where (name, id) >=(foobar,2) order by name, id limit page_size
Click to show internal directories.
Click to hide internal directories.