cloudclient

package
v0.0.0-...-016edcc Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 14, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

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

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 AuthActor

func AuthActor(
	ctx context.Context,
	client graphql.Client,
) (*AuthActorResponse, error)

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.

func (*FlowInput) GetName

func (v *FlowInput) GetName() string

GetName returns FlowInput.Name, and is useful for accessing the field via an interface.

type FlowMetaInput

type FlowMetaInput struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

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

type HephClient struct {
	Url string
	graphql.Client
}

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

GetUser returns LoginLoginLoginPayload.User, and is useful for accessing the field via an interface.

type LoginLoginLoginPayloadUser

type LoginLoginLoginPayloadUser struct {
	Id    string `json:"id"`
	Email string `json:"email"`
}

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

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 Login

func Login(
	ctx context.Context,
	client graphql.Client,
	email string,
	pass string,
) (*LoginResponse, error)

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

GetId returns RegisterFlowInvocationRegisterFlowInvocationFlow.Id, and is useful for accessing the field via an interface.

func (*RegisterFlowInvocationRegisterFlowInvocationFlow) GetInvocations

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

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

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

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

GetRegisterFlowInvocation returns RegisterFlowInvocationResponse.RegisterFlowInvocation, and is useful for accessing the field via an interface.

type RegisterFlowRegisterFlow

type RegisterFlowRegisterFlow struct {
	Id  string `json:"id"`
	Url string `json:"url"`
}

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 RegisterFlow(
	ctx context.Context,
	client graphql.Client,
	projectId string,
	flow FlowInput,
) (*RegisterFlowResponse, error)

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

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

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

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

GetEndInvocation returns SendEndInvocationResponse.EndInvocation, and is useful for accessing the field via an interface.

type SendEventsIngestSpansTargetSpan

type SendEventsIngestSpansTargetSpan struct {
	Id     string `json:"id"`
	SpanId string `json:"spanId"`
}

SendEventsIngestSpansTargetSpan includes the requested fields of the GraphQL type TargetSpan.

func (*SendEventsIngestSpansTargetSpan) GetId

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

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

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 SendInvocationHeartbeat(
	ctx context.Context,
	client graphql.Client,
	invocationId string,
) (*SendInvocationHeartbeatResponse, error)

func (*SendInvocationHeartbeatResponse) GetHeartbeatInvocation

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 SendLogs

func SendLogs(
	ctx context.Context,
	client graphql.Client,
	spanId string,
	bdata string,
) (*SendLogsResponse, error)

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL