Documentation ¶
Index ¶
- type AuthActorAuth
- type AuthActorAuthActor
- type AuthActorAuthActorAnonymousActor
- type AuthActorAuthActorOrganizationToken
- type AuthActorAuthActorUser
- type AuthActorResponse
- type Event
- type FlowInput
- type FlowMetaInput
- type HephClient
- type InvocationEndInput
- type InvocationInput
- type LoginLoginLoginPayload
- type LoginLoginLoginPayloadUser
- type LoginResponse
- type RegisterFlowInvocationRegisterFlowInvocationFlow
- type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection
- type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge
- type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation
- type RegisterFlowInvocationResponse
- type RegisterFlowRegisterFlow
- type RegisterFlowResponse
- type RegisterInvocationRegisterInvocation
- type RegisterInvocationResponse
- type SendEndInvocationEndInvocation
- type SendEndInvocationResponse
- type SendEventsIngestSpansTargetSpan
- type SendEventsResponse
- type SendInvocationHeartbeatHeartbeatInvocation
- type SendInvocationHeartbeatResponse
- type SendLogsResponse
- type TargetExecSpanEvent
- type TargetExecSpanFinalState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthActorAuth ¶
type AuthActorAuth struct {
Actor AuthActorAuthActor `json:"-"`
}
AuthActorAuth includes the requested fields of the GraphQL type Auth.
func (*AuthActorAuth) GetActor ¶
func (v *AuthActorAuth) GetActor() AuthActorAuthActor
GetActor returns AuthActorAuth.Actor, and is useful for accessing the field via an interface.
func (*AuthActorAuth) MarshalJSON ¶
func (v *AuthActorAuth) MarshalJSON() ([]byte, error)
func (*AuthActorAuth) UnmarshalJSON ¶
func (v *AuthActorAuth) UnmarshalJSON(b []byte) error
type AuthActorAuthActor ¶
type AuthActorAuthActor interface { // GetTypename returns the receiver's concrete GraphQL type-name (see interface doc for possible values). GetTypename() string // GetActor_type returns the interface-field "actor_type" from its implementation. GetActor_type() string // GetActor_id returns the interface-field "actor_id" from its implementation. GetActor_id() string // contains filtered or unexported methods }
AuthActorAuthActor includes the requested fields of the GraphQL interface Actor.
AuthActorAuthActor is implemented by the following types: AuthActorAuthActorAnonymousActor AuthActorAuthActorOrganizationToken AuthActorAuthActorUser
type AuthActorAuthActorAnonymousActor ¶
type AuthActorAuthActorAnonymousActor struct { Typename string `json:"__typename"` Actor_type string `json:"actor_type"` Actor_id string `json:"actor_id"` }
AuthActorAuthActorAnonymousActor includes the requested fields of the GraphQL type AnonymousActor.
func (*AuthActorAuthActorAnonymousActor) GetActor_id ¶
func (v *AuthActorAuthActorAnonymousActor) GetActor_id() string
GetActor_id returns AuthActorAuthActorAnonymousActor.Actor_id, and is useful for accessing the field via an interface.
func (*AuthActorAuthActorAnonymousActor) GetActor_type ¶
func (v *AuthActorAuthActorAnonymousActor) GetActor_type() string
GetActor_type returns AuthActorAuthActorAnonymousActor.Actor_type, and is useful for accessing the field via an interface.
func (*AuthActorAuthActorAnonymousActor) GetTypename ¶
func (v *AuthActorAuthActorAnonymousActor) GetTypename() string
GetTypename returns AuthActorAuthActorAnonymousActor.Typename, and is useful for accessing the field via an interface.
type AuthActorAuthActorOrganizationToken ¶
type AuthActorAuthActorOrganizationToken struct { Typename string `json:"__typename"` Actor_type string `json:"actor_type"` Actor_id string `json:"actor_id"` }
AuthActorAuthActorOrganizationToken includes the requested fields of the GraphQL type OrganizationToken.
func (*AuthActorAuthActorOrganizationToken) GetActor_id ¶
func (v *AuthActorAuthActorOrganizationToken) GetActor_id() string
GetActor_id returns AuthActorAuthActorOrganizationToken.Actor_id, and is useful for accessing the field via an interface.
func (*AuthActorAuthActorOrganizationToken) GetActor_type ¶
func (v *AuthActorAuthActorOrganizationToken) GetActor_type() string
GetActor_type returns AuthActorAuthActorOrganizationToken.Actor_type, and is useful for accessing the field via an interface.
func (*AuthActorAuthActorOrganizationToken) GetTypename ¶
func (v *AuthActorAuthActorOrganizationToken) GetTypename() string
GetTypename returns AuthActorAuthActorOrganizationToken.Typename, and is useful for accessing the field via an interface.
type AuthActorAuthActorUser ¶
type AuthActorAuthActorUser struct { Typename string `json:"__typename"` Actor_type string `json:"actor_type"` Actor_id string `json:"actor_id"` }
AuthActorAuthActorUser includes the requested fields of the GraphQL type User.
func (*AuthActorAuthActorUser) GetActor_id ¶
func (v *AuthActorAuthActorUser) GetActor_id() string
GetActor_id returns AuthActorAuthActorUser.Actor_id, and is useful for accessing the field via an interface.
func (*AuthActorAuthActorUser) GetActor_type ¶
func (v *AuthActorAuthActorUser) GetActor_type() string
GetActor_type returns AuthActorAuthActorUser.Actor_type, and is useful for accessing the field via an interface.
func (*AuthActorAuthActorUser) GetTypename ¶
func (v *AuthActorAuthActorUser) GetTypename() string
GetTypename returns AuthActorAuthActorUser.Typename, and is useful for accessing the field via an interface.
type AuthActorResponse ¶
type AuthActorResponse struct {
Auth AuthActorAuth `json:"auth"`
}
AuthActorResponse is returned by AuthActor on success.
func (*AuthActorResponse) GetAuth ¶
func (v *AuthActorResponse) GetAuth() AuthActorAuth
GetAuth returns AuthActorResponse.Auth, and is useful for accessing the field via an interface.
type Event ¶
type Event struct { Event TargetExecSpanEvent `json:"event"` SpanID string `json:"span_id"` FinalState null.Val[TargetExecSpanFinalState] `json:"final_state"` ScheduledTime null.Val[time.Time] `json:"scheduled_time,omitempty"` QueuedTime null.Val[time.Time] `json:"queued_time,omitempty"` StartTime null.Val[time.Time] `json:"start_time,omitempty"` EndTime null.Val[time.Time] `json:"end_time,omitempty"` TargetAddr null.Val[string] `json:"target_fqn,omitempty"` ArtifactName null.Val[string] `json:"artifact_name,omitempty"` CacheHit null.Val[bool] `json:"cache_hit,omitempty"` ParentID null.Val[string] `json:"parent_id,omitempty"` }
type FlowInput ¶
type FlowInput struct { Name string `json:"name"` Metas []FlowMetaInput `json:"metas"` }
func (*FlowInput) GetMetas ¶
func (v *FlowInput) GetMetas() []FlowMetaInput
GetMetas returns FlowInput.Metas, and is useful for accessing the field via an interface.
type FlowMetaInput ¶
func (*FlowMetaInput) GetKey ¶
func (v *FlowMetaInput) GetKey() string
GetKey returns FlowMetaInput.Key, and is useful for accessing the field via an interface.
func (*FlowMetaInput) GetValue ¶
func (v *FlowMetaInput) GetValue() string
GetValue returns FlowMetaInput.Value, and is useful for accessing the field via an interface.
type HephClient ¶
func New ¶
func New(url string) HephClient
func (HephClient) WithAuthToken ¶
func (c HephClient) WithAuthToken(tok string) HephClient
type InvocationEndInput ¶
type InvocationEndInput struct { InvocationId string `json:"invocationId"` Error bool `json:"error"` }
func (*InvocationEndInput) GetError ¶
func (v *InvocationEndInput) GetError() bool
GetError returns InvocationEndInput.Error, and is useful for accessing the field via an interface.
func (*InvocationEndInput) GetInvocationId ¶
func (v *InvocationEndInput) GetInvocationId() string
GetInvocationId returns InvocationEndInput.InvocationId, and is useful for accessing the field via an interface.
type InvocationInput ¶
type InvocationInput struct { Args []string `json:"args"` Config json.RawMessage `json:"config"` StartTime time.Time `json:"startTime"` }
func (*InvocationInput) GetArgs ¶
func (v *InvocationInput) GetArgs() []string
GetArgs returns InvocationInput.Args, and is useful for accessing the field via an interface.
func (*InvocationInput) GetConfig ¶
func (v *InvocationInput) GetConfig() json.RawMessage
GetConfig returns InvocationInput.Config, and is useful for accessing the field via an interface.
func (*InvocationInput) GetStartTime ¶
func (v *InvocationInput) GetStartTime() time.Time
GetStartTime returns InvocationInput.StartTime, and is useful for accessing the field via an interface.
type LoginLoginLoginPayload ¶
type LoginLoginLoginPayload struct { Token string `json:"token"` User LoginLoginLoginPayloadUser `json:"user"` }
LoginLoginLoginPayload includes the requested fields of the GraphQL type LoginPayload.
func (*LoginLoginLoginPayload) GetToken ¶
func (v *LoginLoginLoginPayload) GetToken() string
GetToken returns LoginLoginLoginPayload.Token, and is useful for accessing the field via an interface.
func (*LoginLoginLoginPayload) GetUser ¶
func (v *LoginLoginLoginPayload) GetUser() LoginLoginLoginPayloadUser
GetUser returns LoginLoginLoginPayload.User, and is useful for accessing the field via an interface.
type LoginLoginLoginPayloadUser ¶
LoginLoginLoginPayloadUser includes the requested fields of the GraphQL type User.
func (*LoginLoginLoginPayloadUser) GetEmail ¶
func (v *LoginLoginLoginPayloadUser) GetEmail() string
GetEmail returns LoginLoginLoginPayloadUser.Email, and is useful for accessing the field via an interface.
func (*LoginLoginLoginPayloadUser) GetId ¶
func (v *LoginLoginLoginPayloadUser) GetId() string
GetId returns LoginLoginLoginPayloadUser.Id, and is useful for accessing the field via an interface.
type LoginResponse ¶
type LoginResponse struct {
Login LoginLoginLoginPayload `json:"login"`
}
LoginResponse is returned by Login on success.
func (*LoginResponse) GetLogin ¶
func (v *LoginResponse) GetLogin() LoginLoginLoginPayload
GetLogin returns LoginResponse.Login, and is useful for accessing the field via an interface.
type RegisterFlowInvocationRegisterFlowInvocationFlow ¶
type RegisterFlowInvocationRegisterFlowInvocationFlow struct { Id string `json:"id"` Invocations RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection `json:"invocations"` }
RegisterFlowInvocationRegisterFlowInvocationFlow includes the requested fields of the GraphQL type Flow.
func (*RegisterFlowInvocationRegisterFlowInvocationFlow) GetId ¶
func (v *RegisterFlowInvocationRegisterFlowInvocationFlow) GetId() string
GetId returns RegisterFlowInvocationRegisterFlowInvocationFlow.Id, and is useful for accessing the field via an interface.
func (*RegisterFlowInvocationRegisterFlowInvocationFlow) GetInvocations ¶
func (v *RegisterFlowInvocationRegisterFlowInvocationFlow) GetInvocations() RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection
GetInvocations returns RegisterFlowInvocationRegisterFlowInvocationFlow.Invocations, and is useful for accessing the field via an interface.
type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection ¶
type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection struct {
Edges []RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge `json:"edges"`
}
RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection includes the requested fields of the GraphQL type InvocationConnection.
func (*RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection) GetEdges ¶
func (v *RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection) GetEdges() []RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge
GetEdges returns RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnection.Edges, and is useful for accessing the field via an interface.
type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge ¶
type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge struct {
Node RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation `json:"node"`
}
RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge includes the requested fields of the GraphQL type InvocationEdge.
func (*RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge) GetNode ¶
func (v *RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge) GetNode() RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation
GetNode returns RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdge.Node, and is useful for accessing the field via an interface.
type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation ¶
type RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation struct {
Id string `json:"id"`
}
RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation includes the requested fields of the GraphQL type Invocation.
func (*RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation) GetId ¶
func (v *RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation) GetId() string
GetId returns RegisterFlowInvocationRegisterFlowInvocationFlowInvocationsInvocationConnectionEdgesInvocationEdgeNodeInvocation.Id, and is useful for accessing the field via an interface.
type RegisterFlowInvocationResponse ¶
type RegisterFlowInvocationResponse struct {
RegisterFlowInvocation RegisterFlowInvocationRegisterFlowInvocationFlow `json:"registerFlowInvocation"`
}
RegisterFlowInvocationResponse is returned by RegisterFlowInvocation on success.
func RegisterFlowInvocation ¶
func RegisterFlowInvocation( ctx context.Context, client graphql.Client, projectId string, flow FlowInput, invocation InvocationInput, ) (*RegisterFlowInvocationResponse, error)
func (*RegisterFlowInvocationResponse) GetRegisterFlowInvocation ¶
func (v *RegisterFlowInvocationResponse) GetRegisterFlowInvocation() RegisterFlowInvocationRegisterFlowInvocationFlow
GetRegisterFlowInvocation returns RegisterFlowInvocationResponse.RegisterFlowInvocation, and is useful for accessing the field via an interface.
type RegisterFlowRegisterFlow ¶
RegisterFlowRegisterFlow includes the requested fields of the GraphQL type Flow.
func (*RegisterFlowRegisterFlow) GetId ¶
func (v *RegisterFlowRegisterFlow) GetId() string
GetId returns RegisterFlowRegisterFlow.Id, and is useful for accessing the field via an interface.
func (*RegisterFlowRegisterFlow) GetUrl ¶
func (v *RegisterFlowRegisterFlow) GetUrl() string
GetUrl returns RegisterFlowRegisterFlow.Url, and is useful for accessing the field via an interface.
type RegisterFlowResponse ¶
type RegisterFlowResponse struct {
RegisterFlow RegisterFlowRegisterFlow `json:"registerFlow"`
}
RegisterFlowResponse is returned by RegisterFlow on success.
func RegisterFlow ¶
func (*RegisterFlowResponse) GetRegisterFlow ¶
func (v *RegisterFlowResponse) GetRegisterFlow() RegisterFlowRegisterFlow
GetRegisterFlow returns RegisterFlowResponse.RegisterFlow, and is useful for accessing the field via an interface.
type RegisterInvocationRegisterInvocation ¶
type RegisterInvocationRegisterInvocation struct {
Id string `json:"id"`
}
RegisterInvocationRegisterInvocation includes the requested fields of the GraphQL type Invocation.
func (*RegisterInvocationRegisterInvocation) GetId ¶
func (v *RegisterInvocationRegisterInvocation) GetId() string
GetId returns RegisterInvocationRegisterInvocation.Id, and is useful for accessing the field via an interface.
type RegisterInvocationResponse ¶
type RegisterInvocationResponse struct {
RegisterInvocation RegisterInvocationRegisterInvocation `json:"registerInvocation"`
}
RegisterInvocationResponse is returned by RegisterInvocation on success.
func RegisterInvocation ¶
func RegisterInvocation( ctx context.Context, client graphql.Client, flowId string, invocation InvocationInput, ) (*RegisterInvocationResponse, error)
func (*RegisterInvocationResponse) GetRegisterInvocation ¶
func (v *RegisterInvocationResponse) GetRegisterInvocation() RegisterInvocationRegisterInvocation
GetRegisterInvocation returns RegisterInvocationResponse.RegisterInvocation, and is useful for accessing the field via an interface.
type SendEndInvocationEndInvocation ¶
type SendEndInvocationEndInvocation struct {
Id string `json:"id"`
}
SendEndInvocationEndInvocation includes the requested fields of the GraphQL type Invocation.
func (*SendEndInvocationEndInvocation) GetId ¶
func (v *SendEndInvocationEndInvocation) GetId() string
GetId returns SendEndInvocationEndInvocation.Id, and is useful for accessing the field via an interface.
type SendEndInvocationResponse ¶
type SendEndInvocationResponse struct {
EndInvocation SendEndInvocationEndInvocation `json:"endInvocation"`
}
SendEndInvocationResponse is returned by SendEndInvocation on success.
func SendEndInvocation ¶
func SendEndInvocation( ctx context.Context, client graphql.Client, idata InvocationEndInput, ) (*SendEndInvocationResponse, error)
func (*SendEndInvocationResponse) GetEndInvocation ¶
func (v *SendEndInvocationResponse) GetEndInvocation() SendEndInvocationEndInvocation
GetEndInvocation returns SendEndInvocationResponse.EndInvocation, and is useful for accessing the field via an interface.
type SendEventsIngestSpansTargetSpan ¶
SendEventsIngestSpansTargetSpan includes the requested fields of the GraphQL type TargetSpan.
func (*SendEventsIngestSpansTargetSpan) GetId ¶
func (v *SendEventsIngestSpansTargetSpan) GetId() string
GetId returns SendEventsIngestSpansTargetSpan.Id, and is useful for accessing the field via an interface.
func (*SendEventsIngestSpansTargetSpan) GetSpanId ¶
func (v *SendEventsIngestSpansTargetSpan) GetSpanId() string
GetSpanId returns SendEventsIngestSpansTargetSpan.SpanId, and is useful for accessing the field via an interface.
type SendEventsResponse ¶
type SendEventsResponse struct {
IngestSpans []SendEventsIngestSpansTargetSpan `json:"ingestSpans"`
}
SendEventsResponse is returned by SendEvents on success.
func SendEvents ¶
func SendEvents( ctx context.Context, client graphql.Client, invocationId string, spans []json.RawMessage, ) (*SendEventsResponse, error)
func (*SendEventsResponse) GetIngestSpans ¶
func (v *SendEventsResponse) GetIngestSpans() []SendEventsIngestSpansTargetSpan
GetIngestSpans returns SendEventsResponse.IngestSpans, and is useful for accessing the field via an interface.
type SendInvocationHeartbeatHeartbeatInvocation ¶
type SendInvocationHeartbeatHeartbeatInvocation struct {
Id string `json:"id"`
}
SendInvocationHeartbeatHeartbeatInvocation includes the requested fields of the GraphQL type Invocation.
func (*SendInvocationHeartbeatHeartbeatInvocation) GetId ¶
func (v *SendInvocationHeartbeatHeartbeatInvocation) GetId() string
GetId returns SendInvocationHeartbeatHeartbeatInvocation.Id, and is useful for accessing the field via an interface.
type SendInvocationHeartbeatResponse ¶
type SendInvocationHeartbeatResponse struct {
HeartbeatInvocation SendInvocationHeartbeatHeartbeatInvocation `json:"heartbeatInvocation"`
}
SendInvocationHeartbeatResponse is returned by SendInvocationHeartbeat on success.
func SendInvocationHeartbeat ¶
func (*SendInvocationHeartbeatResponse) GetHeartbeatInvocation ¶
func (v *SendInvocationHeartbeatResponse) GetHeartbeatInvocation() SendInvocationHeartbeatHeartbeatInvocation
GetHeartbeatInvocation returns SendInvocationHeartbeatResponse.HeartbeatInvocation, and is useful for accessing the field via an interface.
type SendLogsResponse ¶
type SendLogsResponse struct {
IngestSpanLogs string `json:"ingestSpanLogs"`
}
SendLogsResponse is returned by SendLogs on success.
func (*SendLogsResponse) GetIngestSpanLogs ¶
func (v *SendLogsResponse) GetIngestSpanLogs() string
GetIngestSpanLogs returns SendLogsResponse.IngestSpanLogs, and is useful for accessing the field via an interface.
type TargetExecSpanEvent ¶
type TargetExecSpanEvent string
const ( TargetExecSpanEventRUN TargetExecSpanEvent = "RUN" TargetExecSpanEventRUN_PREPARE TargetExecSpanEvent = "RUN_PREPARE" TargetExecSpanEventRUN_EXEC TargetExecSpanEvent = "RUN_EXEC" TargetExecSpanEventGEN_PASS TargetExecSpanEvent = "GEN_PASS" TargetExecSpanEventCACHE_COLLECT_OUTPUT TargetExecSpanEvent = "CACHE_COLLECT_OUTPUT" TargetExecSpanEventCACHE_LOCAL_STORE TargetExecSpanEvent = "CACHE_LOCAL_STORE" TargetExecSpanEventCACHE_LOCAL_CHECK TargetExecSpanEvent = "CACHE_LOCAL_CHECK" TargetExecSpanEventCACHE_REMOTE_GET TargetExecSpanEvent = "CACHE_REMOTE_GET" TargetExecSpanEventARTIFACT_REMOTE_DOWNLOAD TargetExecSpanEvent = "ARTIFACT_REMOTE_DOWNLOAD" TargetExecSpanEventARTIFACT_REMOTE_UPLOAD TargetExecSpanEvent = "ARTIFACT_REMOTE_UPLOAD" )
Enum values for TargetExecSpanEvent
type TargetExecSpanFinalState ¶
type TargetExecSpanFinalState string
const ( TargetExecSpanFinalStateSUCCESS TargetExecSpanFinalState = "SUCCESS" TargetExecSpanFinalStateFAILED TargetExecSpanFinalState = "FAILED" TargetExecSpanFinalStateSKIPPED TargetExecSpanFinalState = "SKIPPED" )
Enum values for TargetExecSpanFinalState