experimentationv1

package
v0.0.0-...-13416ad Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package experimentationv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	ExperimentsAPI_CreateExperiment_FullMethodName        = "/clutch.chaos.experimentation.v1.ExperimentsAPI/CreateExperiment"
	ExperimentsAPI_CreateOrGetExperiment_FullMethodName   = "/clutch.chaos.experimentation.v1.ExperimentsAPI/CreateOrGetExperiment"
	ExperimentsAPI_CancelExperimentRun_FullMethodName     = "/clutch.chaos.experimentation.v1.ExperimentsAPI/CancelExperimentRun"
	ExperimentsAPI_GetExperiments_FullMethodName          = "/clutch.chaos.experimentation.v1.ExperimentsAPI/GetExperiments"
	ExperimentsAPI_GetListView_FullMethodName             = "/clutch.chaos.experimentation.v1.ExperimentsAPI/GetListView"
	ExperimentsAPI_GetExperimentRunDetails_FullMethodName = "/clutch.chaos.experimentation.v1.ExperimentsAPI/GetExperimentRunDetails"
)

Variables

View Source
var (
	Experiment_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_SCHEDULED",
		2: "STATUS_RUNNING",
		3: "STATUS_COMPLETED",
		4: "STATUS_CANCELED",
	}
	Experiment_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_SCHEDULED":   1,
		"STATUS_RUNNING":     2,
		"STATUS_COMPLETED":   3,
		"STATUS_CANCELED":    4,
	}
)

Enum value maps for Experiment_Status.

View Source
var (
	CreateOrGetExperimentResponse_Origin_name = map[int32]string{
		0: "ORIGIN_UNSPECIFIED",
		1: "ORIGIN_EXISTING",
		2: "ORIGIN_NEW",
	}
	CreateOrGetExperimentResponse_Origin_value = map[string]int32{
		"ORIGIN_UNSPECIFIED": 0,
		"ORIGIN_EXISTING":    1,
		"ORIGIN_NEW":         2,
	}
)

Enum value maps for CreateOrGetExperimentResponse_Origin.

View Source
var (
	GetExperimentsRequest_Status_name = map[int32]string{
		0: "STATUS_UNSPECIFIED",
		1: "STATUS_RUNNING",
	}
	GetExperimentsRequest_Status_value = map[string]int32{
		"STATUS_UNSPECIFIED": 0,
		"STATUS_RUNNING":     1,
	}
)

Enum value maps for GetExperimentsRequest_Status.

View Source
var ExperimentsAPI_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clutch.chaos.experimentation.v1.ExperimentsAPI",
	HandlerType: (*ExperimentsAPIServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateExperiment",
			Handler:    _ExperimentsAPI_CreateExperiment_Handler,
		},
		{
			MethodName: "CreateOrGetExperiment",
			Handler:    _ExperimentsAPI_CreateOrGetExperiment_Handler,
		},
		{
			MethodName: "CancelExperimentRun",
			Handler:    _ExperimentsAPI_CancelExperimentRun_Handler,
		},
		{
			MethodName: "GetExperiments",
			Handler:    _ExperimentsAPI_GetExperiments_Handler,
		},
		{
			MethodName: "GetListView",
			Handler:    _ExperimentsAPI_GetListView_Handler,
		},
		{
			MethodName: "GetExperimentRunDetails",
			Handler:    _ExperimentsAPI_GetExperimentRunDetails_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "chaos/experimentation/v1/experimentation.proto",
}

ExperimentsAPI_ServiceDesc is the grpc.ServiceDesc for ExperimentsAPI service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_chaos_experimentation_v1_create_experiment_data_proto protoreflect.FileDescriptor
View Source
var File_chaos_experimentation_v1_experiment_proto protoreflect.FileDescriptor
View Source
var File_chaos_experimentation_v1_experiment_run_details_proto protoreflect.FileDescriptor
View Source
var File_chaos_experimentation_v1_experimentation_proto protoreflect.FileDescriptor
View Source
var File_chaos_experimentation_v1_list_view_item_proto protoreflect.FileDescriptor
View Source
var File_chaos_experimentation_v1_properties_proto protoreflect.FileDescriptor

Functions

func RegisterExperimentsAPIHandler

func RegisterExperimentsAPIHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterExperimentsAPIHandler registers the http handlers for service ExperimentsAPI to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterExperimentsAPIHandlerClient

func RegisterExperimentsAPIHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ExperimentsAPIClient) error

RegisterExperimentsAPIHandlerClient registers the http handlers for service ExperimentsAPI to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ExperimentsAPIClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ExperimentsAPIClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ExperimentsAPIClient" to call the correct interceptors.

func RegisterExperimentsAPIHandlerFromEndpoint

func RegisterExperimentsAPIHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterExperimentsAPIHandlerFromEndpoint is same as RegisterExperimentsAPIHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterExperimentsAPIHandlerServer

func RegisterExperimentsAPIHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ExperimentsAPIServer) error

RegisterExperimentsAPIHandlerServer registers the http handlers for service ExperimentsAPI to "mux". UnaryRPC :call ExperimentsAPIServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterExperimentsAPIHandlerFromEndpoint instead.

func RegisterExperimentsAPIServer

func RegisterExperimentsAPIServer(s grpc.ServiceRegistrar, srv ExperimentsAPIServer)

Types

type CancelExperimentRunRequest

type CancelExperimentRunRequest struct {

	// The identifier of an experiment run to cancel.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The reason for the cancelation request.
	Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
	// contains filtered or unexported fields
}

func (*CancelExperimentRunRequest) Descriptor deprecated

func (*CancelExperimentRunRequest) Descriptor() ([]byte, []int)

Deprecated: Use CancelExperimentRunRequest.ProtoReflect.Descriptor instead.

func (*CancelExperimentRunRequest) GetId

func (*CancelExperimentRunRequest) GetReason

func (x *CancelExperimentRunRequest) GetReason() string

func (*CancelExperimentRunRequest) ProtoMessage

func (*CancelExperimentRunRequest) ProtoMessage()

func (*CancelExperimentRunRequest) ProtoReflect

func (*CancelExperimentRunRequest) Reset

func (x *CancelExperimentRunRequest) Reset()

func (*CancelExperimentRunRequest) String

func (x *CancelExperimentRunRequest) String() string

func (*CancelExperimentRunRequest) Validate

func (m *CancelExperimentRunRequest) Validate() error

Validate checks the field values on CancelExperimentRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelExperimentRunRequest) ValidateAll

func (m *CancelExperimentRunRequest) ValidateAll() error

ValidateAll checks the field values on CancelExperimentRunRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelExperimentRunRequestMultiError, or nil if none found.

type CancelExperimentRunRequestMultiError

type CancelExperimentRunRequestMultiError []error

CancelExperimentRunRequestMultiError is an error wrapping multiple validation errors returned by CancelExperimentRunRequest.ValidateAll() if the designated constraints aren't met.

func (CancelExperimentRunRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CancelExperimentRunRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelExperimentRunRequestValidationError

type CancelExperimentRunRequestValidationError struct {
	// contains filtered or unexported fields
}

CancelExperimentRunRequestValidationError is the validation error returned by CancelExperimentRunRequest.Validate if the designated constraints aren't met.

func (CancelExperimentRunRequestValidationError) Cause

Cause function returns cause value.

func (CancelExperimentRunRequestValidationError) Error

Error satisfies the builtin error interface

func (CancelExperimentRunRequestValidationError) ErrorName

ErrorName returns error name.

func (CancelExperimentRunRequestValidationError) Field

Field function returns field value.

func (CancelExperimentRunRequestValidationError) Key

Key function returns key value.

func (CancelExperimentRunRequestValidationError) Reason

Reason function returns reason value.

type CancelExperimentRunResponse

type CancelExperimentRunResponse struct {
	// contains filtered or unexported fields
}

func (*CancelExperimentRunResponse) Descriptor deprecated

func (*CancelExperimentRunResponse) Descriptor() ([]byte, []int)

Deprecated: Use CancelExperimentRunResponse.ProtoReflect.Descriptor instead.

func (*CancelExperimentRunResponse) ProtoMessage

func (*CancelExperimentRunResponse) ProtoMessage()

func (*CancelExperimentRunResponse) ProtoReflect

func (*CancelExperimentRunResponse) Reset

func (x *CancelExperimentRunResponse) Reset()

func (*CancelExperimentRunResponse) String

func (x *CancelExperimentRunResponse) String() string

func (*CancelExperimentRunResponse) Validate

func (m *CancelExperimentRunResponse) Validate() error

Validate checks the field values on CancelExperimentRunResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CancelExperimentRunResponse) ValidateAll

func (m *CancelExperimentRunResponse) ValidateAll() error

ValidateAll checks the field values on CancelExperimentRunResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CancelExperimentRunResponseMultiError, or nil if none found.

type CancelExperimentRunResponseMultiError

type CancelExperimentRunResponseMultiError []error

CancelExperimentRunResponseMultiError is an error wrapping multiple validation errors returned by CancelExperimentRunResponse.ValidateAll() if the designated constraints aren't met.

func (CancelExperimentRunResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CancelExperimentRunResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CancelExperimentRunResponseValidationError

type CancelExperimentRunResponseValidationError struct {
	// contains filtered or unexported fields
}

CancelExperimentRunResponseValidationError is the validation error returned by CancelExperimentRunResponse.Validate if the designated constraints aren't met.

func (CancelExperimentRunResponseValidationError) Cause

Cause function returns cause value.

func (CancelExperimentRunResponseValidationError) Error

Error satisfies the builtin error interface

func (CancelExperimentRunResponseValidationError) ErrorName

ErrorName returns error name.

func (CancelExperimentRunResponseValidationError) Field

Field function returns field value.

func (CancelExperimentRunResponseValidationError) Key

Key function returns key value.

func (CancelExperimentRunResponseValidationError) Reason

Reason function returns reason value.

type CreateExperimentData

type CreateExperimentData struct {

	// The unique identifier of experiment run that's created as part of the experiment creation process.
	// A random run identifier is generated and assigned to the experiment if it's not provided by a caller.
	// The identifier is supposed to be user-readable and URL renderable - for this reason, allowed characters
	// are limited to English characters, digits and the following special characters: "-", ".", "_" and "~".
	RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	// The experiment configuration specific to the type of experiment.
	Config *anypb.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// The time when the experiment should start. If not provided, defaults to 'now'. It cannot be in the past.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time when the experiment should end, If not provided, the experiment runs until it's manually stopped.
	// If provided, it has to be after `start_time`.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// contains filtered or unexported fields
}

The data used as an input for experiment creation.

func (*CreateExperimentData) Descriptor deprecated

func (*CreateExperimentData) Descriptor() ([]byte, []int)

Deprecated: Use CreateExperimentData.ProtoReflect.Descriptor instead.

func (*CreateExperimentData) GetConfig

func (x *CreateExperimentData) GetConfig() *anypb.Any

func (*CreateExperimentData) GetEndTime

func (x *CreateExperimentData) GetEndTime() *timestamppb.Timestamp

func (*CreateExperimentData) GetRunId

func (x *CreateExperimentData) GetRunId() string

func (*CreateExperimentData) GetStartTime

func (x *CreateExperimentData) GetStartTime() *timestamppb.Timestamp

func (*CreateExperimentData) ProtoMessage

func (*CreateExperimentData) ProtoMessage()

func (*CreateExperimentData) ProtoReflect

func (x *CreateExperimentData) ProtoReflect() protoreflect.Message

func (*CreateExperimentData) Reset

func (x *CreateExperimentData) Reset()

func (*CreateExperimentData) String

func (x *CreateExperimentData) String() string

func (*CreateExperimentData) Validate

func (m *CreateExperimentData) Validate() error

Validate checks the field values on CreateExperimentData with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateExperimentData) ValidateAll

func (m *CreateExperimentData) ValidateAll() error

ValidateAll checks the field values on CreateExperimentData with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateExperimentDataMultiError, or nil if none found.

type CreateExperimentDataMultiError

type CreateExperimentDataMultiError []error

CreateExperimentDataMultiError is an error wrapping multiple validation errors returned by CreateExperimentData.ValidateAll() if the designated constraints aren't met.

func (CreateExperimentDataMultiError) AllErrors

func (m CreateExperimentDataMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateExperimentDataMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateExperimentDataValidationError

type CreateExperimentDataValidationError struct {
	// contains filtered or unexported fields
}

CreateExperimentDataValidationError is the validation error returned by CreateExperimentData.Validate if the designated constraints aren't met.

func (CreateExperimentDataValidationError) Cause

Cause function returns cause value.

func (CreateExperimentDataValidationError) Error

Error satisfies the builtin error interface

func (CreateExperimentDataValidationError) ErrorName

ErrorName returns error name.

func (CreateExperimentDataValidationError) Field

Field function returns field value.

func (CreateExperimentDataValidationError) Key

Key function returns key value.

func (CreateExperimentDataValidationError) Reason

Reason function returns reason value.

type CreateExperimentRequest

type CreateExperimentRequest struct {

	// The data specifying the experiment to create. See `CreateExperiment` for more details.
	Data *CreateExperimentData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateExperimentRequest) Descriptor deprecated

func (*CreateExperimentRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateExperimentRequest.ProtoReflect.Descriptor instead.

func (*CreateExperimentRequest) GetData

func (*CreateExperimentRequest) ProtoMessage

func (*CreateExperimentRequest) ProtoMessage()

func (*CreateExperimentRequest) ProtoReflect

func (x *CreateExperimentRequest) ProtoReflect() protoreflect.Message

func (*CreateExperimentRequest) Reset

func (x *CreateExperimentRequest) Reset()

func (*CreateExperimentRequest) String

func (x *CreateExperimentRequest) String() string

func (*CreateExperimentRequest) Validate

func (m *CreateExperimentRequest) Validate() error

Validate checks the field values on CreateExperimentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateExperimentRequest) ValidateAll

func (m *CreateExperimentRequest) ValidateAll() error

ValidateAll checks the field values on CreateExperimentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateExperimentRequestMultiError, or nil if none found.

type CreateExperimentRequestMultiError

type CreateExperimentRequestMultiError []error

CreateExperimentRequestMultiError is an error wrapping multiple validation errors returned by CreateExperimentRequest.ValidateAll() if the designated constraints aren't met.

func (CreateExperimentRequestMultiError) AllErrors

func (m CreateExperimentRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateExperimentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateExperimentRequestValidationError

type CreateExperimentRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateExperimentRequestValidationError is the validation error returned by CreateExperimentRequest.Validate if the designated constraints aren't met.

func (CreateExperimentRequestValidationError) Cause

Cause function returns cause value.

func (CreateExperimentRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateExperimentRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateExperimentRequestValidationError) Field

Field function returns field value.

func (CreateExperimentRequestValidationError) Key

Key function returns key value.

func (CreateExperimentRequestValidationError) Reason

Reason function returns reason value.

type CreateExperimentResponse

type CreateExperimentResponse struct {

	// The created experiment.
	Experiment *Experiment `protobuf:"bytes,1,opt,name=experiment,proto3" json:"experiment,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateExperimentResponse) Descriptor deprecated

func (*CreateExperimentResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateExperimentResponse.ProtoReflect.Descriptor instead.

func (*CreateExperimentResponse) GetExperiment

func (x *CreateExperimentResponse) GetExperiment() *Experiment

func (*CreateExperimentResponse) ProtoMessage

func (*CreateExperimentResponse) ProtoMessage()

func (*CreateExperimentResponse) ProtoReflect

func (x *CreateExperimentResponse) ProtoReflect() protoreflect.Message

func (*CreateExperimentResponse) Reset

func (x *CreateExperimentResponse) Reset()

func (*CreateExperimentResponse) String

func (x *CreateExperimentResponse) String() string

func (*CreateExperimentResponse) Validate

func (m *CreateExperimentResponse) Validate() error

Validate checks the field values on CreateExperimentResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateExperimentResponse) ValidateAll

func (m *CreateExperimentResponse) ValidateAll() error

ValidateAll checks the field values on CreateExperimentResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateExperimentResponseMultiError, or nil if none found.

type CreateExperimentResponseMultiError

type CreateExperimentResponseMultiError []error

CreateExperimentResponseMultiError is an error wrapping multiple validation errors returned by CreateExperimentResponse.ValidateAll() if the designated constraints aren't met.

func (CreateExperimentResponseMultiError) AllErrors

func (m CreateExperimentResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (CreateExperimentResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateExperimentResponseValidationError

type CreateExperimentResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateExperimentResponseValidationError is the validation error returned by CreateExperimentResponse.Validate if the designated constraints aren't met.

func (CreateExperimentResponseValidationError) Cause

Cause function returns cause value.

func (CreateExperimentResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateExperimentResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateExperimentResponseValidationError) Field

Field function returns field value.

func (CreateExperimentResponseValidationError) Key

Key function returns key value.

func (CreateExperimentResponseValidationError) Reason

Reason function returns reason value.

type CreateOrGetExperimentRequest

type CreateOrGetExperimentRequest struct {

	// The data specifying the experiment to fetch or create. See `CreateOrGetExperiment` for more details.
	Data *CreateExperimentData `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateOrGetExperimentRequest) Descriptor deprecated

func (*CreateOrGetExperimentRequest) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrGetExperimentRequest.ProtoReflect.Descriptor instead.

func (*CreateOrGetExperimentRequest) GetData

func (*CreateOrGetExperimentRequest) ProtoMessage

func (*CreateOrGetExperimentRequest) ProtoMessage()

func (*CreateOrGetExperimentRequest) ProtoReflect

func (*CreateOrGetExperimentRequest) Reset

func (x *CreateOrGetExperimentRequest) Reset()

func (*CreateOrGetExperimentRequest) String

func (*CreateOrGetExperimentRequest) Validate

func (m *CreateOrGetExperimentRequest) Validate() error

Validate checks the field values on CreateOrGetExperimentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrGetExperimentRequest) ValidateAll

func (m *CreateOrGetExperimentRequest) ValidateAll() error

ValidateAll checks the field values on CreateOrGetExperimentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrGetExperimentRequestMultiError, or nil if none found.

type CreateOrGetExperimentRequestMultiError

type CreateOrGetExperimentRequestMultiError []error

CreateOrGetExperimentRequestMultiError is an error wrapping multiple validation errors returned by CreateOrGetExperimentRequest.ValidateAll() if the designated constraints aren't met.

func (CreateOrGetExperimentRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateOrGetExperimentRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrGetExperimentRequestValidationError

type CreateOrGetExperimentRequestValidationError struct {
	// contains filtered or unexported fields
}

CreateOrGetExperimentRequestValidationError is the validation error returned by CreateOrGetExperimentRequest.Validate if the designated constraints aren't met.

func (CreateOrGetExperimentRequestValidationError) Cause

Cause function returns cause value.

func (CreateOrGetExperimentRequestValidationError) Error

Error satisfies the builtin error interface

func (CreateOrGetExperimentRequestValidationError) ErrorName

ErrorName returns error name.

func (CreateOrGetExperimentRequestValidationError) Field

Field function returns field value.

func (CreateOrGetExperimentRequestValidationError) Key

Key function returns key value.

func (CreateOrGetExperimentRequestValidationError) Reason

Reason function returns reason value.

type CreateOrGetExperimentResponse

type CreateOrGetExperimentResponse struct {

	// The created or fetched experiment that was requested by a caller. See `origin` to learn more
	// about how to check whether a new experiment was created as the result of the request's execution.
	Experiment *Experiment `protobuf:"bytes,1,opt,name=experiment,proto3" json:"experiment,omitempty"`
	// The type of returned experiment - either a newly created experiment or an existing one.
	Origin CreateOrGetExperimentResponse_Origin `` /* 140-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateOrGetExperimentResponse) Descriptor deprecated

func (*CreateOrGetExperimentResponse) Descriptor() ([]byte, []int)

Deprecated: Use CreateOrGetExperimentResponse.ProtoReflect.Descriptor instead.

func (*CreateOrGetExperimentResponse) GetExperiment

func (x *CreateOrGetExperimentResponse) GetExperiment() *Experiment

func (*CreateOrGetExperimentResponse) GetOrigin

func (*CreateOrGetExperimentResponse) ProtoMessage

func (*CreateOrGetExperimentResponse) ProtoMessage()

func (*CreateOrGetExperimentResponse) ProtoReflect

func (*CreateOrGetExperimentResponse) Reset

func (x *CreateOrGetExperimentResponse) Reset()

func (*CreateOrGetExperimentResponse) String

func (*CreateOrGetExperimentResponse) Validate

func (m *CreateOrGetExperimentResponse) Validate() error

Validate checks the field values on CreateOrGetExperimentResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*CreateOrGetExperimentResponse) ValidateAll

func (m *CreateOrGetExperimentResponse) ValidateAll() error

ValidateAll checks the field values on CreateOrGetExperimentResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CreateOrGetExperimentResponseMultiError, or nil if none found.

type CreateOrGetExperimentResponseMultiError

type CreateOrGetExperimentResponseMultiError []error

CreateOrGetExperimentResponseMultiError is an error wrapping multiple validation errors returned by CreateOrGetExperimentResponse.ValidateAll() if the designated constraints aren't met.

func (CreateOrGetExperimentResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CreateOrGetExperimentResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type CreateOrGetExperimentResponseValidationError

type CreateOrGetExperimentResponseValidationError struct {
	// contains filtered or unexported fields
}

CreateOrGetExperimentResponseValidationError is the validation error returned by CreateOrGetExperimentResponse.Validate if the designated constraints aren't met.

func (CreateOrGetExperimentResponseValidationError) Cause

Cause function returns cause value.

func (CreateOrGetExperimentResponseValidationError) Error

Error satisfies the builtin error interface

func (CreateOrGetExperimentResponseValidationError) ErrorName

ErrorName returns error name.

func (CreateOrGetExperimentResponseValidationError) Field

Field function returns field value.

func (CreateOrGetExperimentResponseValidationError) Key

Key function returns key value.

func (CreateOrGetExperimentResponseValidationError) Reason

Reason function returns reason value.

type CreateOrGetExperimentResponse_Origin

type CreateOrGetExperimentResponse_Origin int32
const (
	CreateOrGetExperimentResponse_ORIGIN_UNSPECIFIED CreateOrGetExperimentResponse_Origin = 0
	CreateOrGetExperimentResponse_ORIGIN_EXISTING    CreateOrGetExperimentResponse_Origin = 1
	CreateOrGetExperimentResponse_ORIGIN_NEW         CreateOrGetExperimentResponse_Origin = 2
)

func (CreateOrGetExperimentResponse_Origin) Descriptor

func (CreateOrGetExperimentResponse_Origin) Enum

func (CreateOrGetExperimentResponse_Origin) EnumDescriptor deprecated

func (CreateOrGetExperimentResponse_Origin) EnumDescriptor() ([]byte, []int)

Deprecated: Use CreateOrGetExperimentResponse_Origin.Descriptor instead.

func (CreateOrGetExperimentResponse_Origin) Number

func (CreateOrGetExperimentResponse_Origin) String

func (CreateOrGetExperimentResponse_Origin) Type

type Experiment

type Experiment struct {

	// An unique identifier of an experiment run.
	RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	// The experiment configuration specific to the type of experiment.
	Config *anypb.Any `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"`
	// The time when the experiment should start.
	StartTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// The time when the experiment should end, If unspecified, the experiment runs indefinitely unless it is manually
	// stopped by a user.
	EndTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// The status of the experiment.
	Status Experiment_Status `protobuf:"varint,5,opt,name=status,proto3,enum=clutch.chaos.experimentation.v1.Experiment_Status" json:"status,omitempty"`
	// contains filtered or unexported fields
}

func (*Experiment) Descriptor deprecated

func (*Experiment) Descriptor() ([]byte, []int)

Deprecated: Use Experiment.ProtoReflect.Descriptor instead.

func (*Experiment) GetConfig

func (x *Experiment) GetConfig() *anypb.Any

func (*Experiment) GetEndTime

func (x *Experiment) GetEndTime() *timestamppb.Timestamp

func (*Experiment) GetRunId

func (x *Experiment) GetRunId() string

func (*Experiment) GetStartTime

func (x *Experiment) GetStartTime() *timestamppb.Timestamp

func (*Experiment) GetStatus

func (x *Experiment) GetStatus() Experiment_Status

func (*Experiment) ProtoMessage

func (*Experiment) ProtoMessage()

func (*Experiment) ProtoReflect

func (x *Experiment) ProtoReflect() protoreflect.Message

func (*Experiment) Reset

func (x *Experiment) Reset()

func (*Experiment) String

func (x *Experiment) String() string

func (*Experiment) Validate

func (m *Experiment) Validate() error

Validate checks the field values on Experiment with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Experiment) ValidateAll

func (m *Experiment) ValidateAll() error

ValidateAll checks the field values on Experiment with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExperimentMultiError, or nil if none found.

type ExperimentMultiError

type ExperimentMultiError []error

ExperimentMultiError is an error wrapping multiple validation errors returned by Experiment.ValidateAll() if the designated constraints aren't met.

func (ExperimentMultiError) AllErrors

func (m ExperimentMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExperimentMultiError) Error

func (m ExperimentMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ExperimentRunDetails

type ExperimentRunDetails struct {

	// The unique identifier of an experiment run.
	RunId string `protobuf:"bytes,1,opt,name=run_id,json=runId,proto3" json:"run_id,omitempty"`
	// The status of an experiment run.
	Status Experiment_Status `protobuf:"varint,2,opt,name=status,proto3,enum=clutch.chaos.experimentation.v1.Experiment_Status" json:"status,omitempty"`
	// The list of properties associated with the receiver that's created as a combination
	// of properties for a given experiment run and an experiment config for the run.
	Properties *PropertiesList `protobuf:"bytes,3,opt,name=properties,proto3" json:"properties,omitempty"`
	// The raw experiment configuration associated with an experiment run.
	Config *anypb.Any `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
	// contains filtered or unexported fields
}

ExperimentRunDetails frontend-renderable details of an experiment run and experiment config associated with it.

func (*ExperimentRunDetails) Descriptor deprecated

func (*ExperimentRunDetails) Descriptor() ([]byte, []int)

Deprecated: Use ExperimentRunDetails.ProtoReflect.Descriptor instead.

func (*ExperimentRunDetails) GetConfig

func (x *ExperimentRunDetails) GetConfig() *anypb.Any

func (*ExperimentRunDetails) GetProperties

func (x *ExperimentRunDetails) GetProperties() *PropertiesList

func (*ExperimentRunDetails) GetRunId

func (x *ExperimentRunDetails) GetRunId() string

func (*ExperimentRunDetails) GetStatus

func (x *ExperimentRunDetails) GetStatus() Experiment_Status

func (*ExperimentRunDetails) ProtoMessage

func (*ExperimentRunDetails) ProtoMessage()

func (*ExperimentRunDetails) ProtoReflect

func (x *ExperimentRunDetails) ProtoReflect() protoreflect.Message

func (*ExperimentRunDetails) Reset

func (x *ExperimentRunDetails) Reset()

func (*ExperimentRunDetails) String

func (x *ExperimentRunDetails) String() string

func (*ExperimentRunDetails) Validate

func (m *ExperimentRunDetails) Validate() error

Validate checks the field values on ExperimentRunDetails with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ExperimentRunDetails) ValidateAll

func (m *ExperimentRunDetails) ValidateAll() error

ValidateAll checks the field values on ExperimentRunDetails with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ExperimentRunDetailsMultiError, or nil if none found.

type ExperimentRunDetailsMultiError

type ExperimentRunDetailsMultiError []error

ExperimentRunDetailsMultiError is an error wrapping multiple validation errors returned by ExperimentRunDetails.ValidateAll() if the designated constraints aren't met.

func (ExperimentRunDetailsMultiError) AllErrors

func (m ExperimentRunDetailsMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ExperimentRunDetailsMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type ExperimentRunDetailsValidationError

type ExperimentRunDetailsValidationError struct {
	// contains filtered or unexported fields
}

ExperimentRunDetailsValidationError is the validation error returned by ExperimentRunDetails.Validate if the designated constraints aren't met.

func (ExperimentRunDetailsValidationError) Cause

Cause function returns cause value.

func (ExperimentRunDetailsValidationError) Error

Error satisfies the builtin error interface

func (ExperimentRunDetailsValidationError) ErrorName

ErrorName returns error name.

func (ExperimentRunDetailsValidationError) Field

Field function returns field value.

func (ExperimentRunDetailsValidationError) Key

Key function returns key value.

func (ExperimentRunDetailsValidationError) Reason

Reason function returns reason value.

type ExperimentValidationError

type ExperimentValidationError struct {
	// contains filtered or unexported fields
}

ExperimentValidationError is the validation error returned by Experiment.Validate if the designated constraints aren't met.

func (ExperimentValidationError) Cause

func (e ExperimentValidationError) Cause() error

Cause function returns cause value.

func (ExperimentValidationError) Error

Error satisfies the builtin error interface

func (ExperimentValidationError) ErrorName

func (e ExperimentValidationError) ErrorName() string

ErrorName returns error name.

func (ExperimentValidationError) Field

Field function returns field value.

func (ExperimentValidationError) Key

Key function returns key value.

func (ExperimentValidationError) Reason

func (e ExperimentValidationError) Reason() string

Reason function returns reason value.

type Experiment_Status

type Experiment_Status int32
const (
	// Unspecified Status.
	Experiment_STATUS_UNSPECIFIED Experiment_Status = 0
	// An experiment is specified to be run at a future date.
	Experiment_STATUS_SCHEDULED Experiment_Status = 1
	// An experiment is currently running.
	Experiment_STATUS_RUNNING Experiment_Status = 2
	// An experiment has completed.
	Experiment_STATUS_COMPLETED Experiment_Status = 3
	// An experiment has been stopped before it was completed. Used only
	// for experiments with defined end_time.
	Experiment_STATUS_CANCELED Experiment_Status = 4
)

func (Experiment_Status) Descriptor

func (Experiment_Status) Enum

func (Experiment_Status) EnumDescriptor deprecated

func (Experiment_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use Experiment_Status.Descriptor instead.

func (Experiment_Status) Number

func (Experiment_Status) String

func (x Experiment_Status) String() string

func (Experiment_Status) Type

type ExperimentsAPIClient

type ExperimentsAPIClient interface {
	// Create a new experiment using the provided experiment data. It fails if an experiment run
	// with the provided run identifier already exists. See `CreateExperimentData` for more details.
	CreateExperiment(ctx context.Context, in *CreateExperimentRequest, opts ...grpc.CallOption) (*CreateExperimentResponse, error)
	// Create a new experiment using the provided experiment data. It succeeds even if an experiment run
	// with the provided run identifier already exists. In this case, the rest of request's payload is ignored
	// and an existing experiment with a matching run identifier is returned. See `CreateExperimentData` for more
	// details.
	CreateOrGetExperiment(ctx context.Context, in *CreateOrGetExperimentRequest, opts ...grpc.CallOption) (*CreateOrGetExperimentResponse, error)
	// Cancel a running experiment run. The operation returns success even if a given experiment run has been
	// already completed or canceled and the operation does not have any effect.
	CancelExperimentRun(ctx context.Context, in *CancelExperimentRunRequest, opts ...grpc.CallOption) (*CancelExperimentRunResponse, error)
	// Get the list of experiments fulfilling the specified criteria. See `GetExperimentsRequests` for more details.
	GetExperiments(ctx context.Context, in *GetExperimentsRequest, opts ...grpc.CallOption) (*GetExperimentsResponse, error)
	// Get the list of experiments in the form that's optimized for displaying to the end user.
	GetListView(ctx context.Context, in *GetListViewRequest, opts ...grpc.CallOption) (*GetListViewResponse, error)
	// Fetch the list of properties in the format that's optimized for displaying to the end user.
	GetExperimentRunDetails(ctx context.Context, in *GetExperimentRunDetailsRequest, opts ...grpc.CallOption) (*GetExperimentRunDetailsResponse, error)
}

ExperimentsAPIClient is the client API for ExperimentsAPI service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ExperimentsAPIServer

type ExperimentsAPIServer interface {
	// Create a new experiment using the provided experiment data. It fails if an experiment run
	// with the provided run identifier already exists. See `CreateExperimentData` for more details.
	CreateExperiment(context.Context, *CreateExperimentRequest) (*CreateExperimentResponse, error)
	// Create a new experiment using the provided experiment data. It succeeds even if an experiment run
	// with the provided run identifier already exists. In this case, the rest of request's payload is ignored
	// and an existing experiment with a matching run identifier is returned. See `CreateExperimentData` for more
	// details.
	CreateOrGetExperiment(context.Context, *CreateOrGetExperimentRequest) (*CreateOrGetExperimentResponse, error)
	// Cancel a running experiment run. The operation returns success even if a given experiment run has been
	// already completed or canceled and the operation does not have any effect.
	CancelExperimentRun(context.Context, *CancelExperimentRunRequest) (*CancelExperimentRunResponse, error)
	// Get the list of experiments fulfilling the specified criteria. See `GetExperimentsRequests` for more details.
	GetExperiments(context.Context, *GetExperimentsRequest) (*GetExperimentsResponse, error)
	// Get the list of experiments in the form that's optimized for displaying to the end user.
	GetListView(context.Context, *GetListViewRequest) (*GetListViewResponse, error)
	// Fetch the list of properties in the format that's optimized for displaying to the end user.
	GetExperimentRunDetails(context.Context, *GetExperimentRunDetailsRequest) (*GetExperimentRunDetailsResponse, error)
}

ExperimentsAPIServer is the server API for ExperimentsAPI service. All implementations should embed UnimplementedExperimentsAPIServer for forward compatibility

type GetExperimentRunDetailsRequest

type GetExperimentRunDetailsRequest struct {

	// The identifier of an experiment run whose details should be returned to the caller.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetExperimentRunDetailsRequest) Descriptor deprecated

func (*GetExperimentRunDetailsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetExperimentRunDetailsRequest.ProtoReflect.Descriptor instead.

func (*GetExperimentRunDetailsRequest) GetId

func (*GetExperimentRunDetailsRequest) ProtoMessage

func (*GetExperimentRunDetailsRequest) ProtoMessage()

func (*GetExperimentRunDetailsRequest) ProtoReflect

func (*GetExperimentRunDetailsRequest) Reset

func (x *GetExperimentRunDetailsRequest) Reset()

func (*GetExperimentRunDetailsRequest) String

func (*GetExperimentRunDetailsRequest) Validate

func (m *GetExperimentRunDetailsRequest) Validate() error

Validate checks the field values on GetExperimentRunDetailsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetExperimentRunDetailsRequest) ValidateAll

func (m *GetExperimentRunDetailsRequest) ValidateAll() error

ValidateAll checks the field values on GetExperimentRunDetailsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetExperimentRunDetailsRequestMultiError, or nil if none found.

type GetExperimentRunDetailsRequestMultiError

type GetExperimentRunDetailsRequestMultiError []error

GetExperimentRunDetailsRequestMultiError is an error wrapping multiple validation errors returned by GetExperimentRunDetailsRequest.ValidateAll() if the designated constraints aren't met.

func (GetExperimentRunDetailsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetExperimentRunDetailsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetExperimentRunDetailsRequestValidationError

type GetExperimentRunDetailsRequestValidationError struct {
	// contains filtered or unexported fields
}

GetExperimentRunDetailsRequestValidationError is the validation error returned by GetExperimentRunDetailsRequest.Validate if the designated constraints aren't met.

func (GetExperimentRunDetailsRequestValidationError) Cause

Cause function returns cause value.

func (GetExperimentRunDetailsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetExperimentRunDetailsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetExperimentRunDetailsRequestValidationError) Field

Field function returns field value.

func (GetExperimentRunDetailsRequestValidationError) Key

Key function returns key value.

func (GetExperimentRunDetailsRequestValidationError) Reason

Reason function returns reason value.

type GetExperimentRunDetailsResponse

type GetExperimentRunDetailsResponse struct {
	RunDetails *ExperimentRunDetails `protobuf:"bytes,1,opt,name=run_details,json=runDetails,proto3" json:"run_details,omitempty"`
	// contains filtered or unexported fields
}

func (*GetExperimentRunDetailsResponse) Descriptor deprecated

func (*GetExperimentRunDetailsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetExperimentRunDetailsResponse.ProtoReflect.Descriptor instead.

func (*GetExperimentRunDetailsResponse) GetRunDetails

func (*GetExperimentRunDetailsResponse) ProtoMessage

func (*GetExperimentRunDetailsResponse) ProtoMessage()

func (*GetExperimentRunDetailsResponse) ProtoReflect

func (*GetExperimentRunDetailsResponse) Reset

func (*GetExperimentRunDetailsResponse) String

func (*GetExperimentRunDetailsResponse) Validate

func (m *GetExperimentRunDetailsResponse) Validate() error

Validate checks the field values on GetExperimentRunDetailsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetExperimentRunDetailsResponse) ValidateAll

func (m *GetExperimentRunDetailsResponse) ValidateAll() error

ValidateAll checks the field values on GetExperimentRunDetailsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetExperimentRunDetailsResponseMultiError, or nil if none found.

type GetExperimentRunDetailsResponseMultiError

type GetExperimentRunDetailsResponseMultiError []error

GetExperimentRunDetailsResponseMultiError is an error wrapping multiple validation errors returned by GetExperimentRunDetailsResponse.ValidateAll() if the designated constraints aren't met.

func (GetExperimentRunDetailsResponseMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (GetExperimentRunDetailsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetExperimentRunDetailsResponseValidationError

type GetExperimentRunDetailsResponseValidationError struct {
	// contains filtered or unexported fields
}

GetExperimentRunDetailsResponseValidationError is the validation error returned by GetExperimentRunDetailsResponse.Validate if the designated constraints aren't met.

func (GetExperimentRunDetailsResponseValidationError) Cause

Cause function returns cause value.

func (GetExperimentRunDetailsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetExperimentRunDetailsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetExperimentRunDetailsResponseValidationError) Field

Field function returns field value.

func (GetExperimentRunDetailsResponseValidationError) Key

Key function returns key value.

func (GetExperimentRunDetailsResponseValidationError) Reason

Reason function returns reason value.

type GetExperimentsRequest

type GetExperimentsRequest struct {

	// Return experiments whose config's type URL matches the provided config type URL.
	// Set to empty string to query for all.
	ConfigType string `protobuf:"bytes,1,opt,name=config_type,json=configType,proto3" json:"config_type,omitempty"`
	// Return experiments whose status is equal to the provided value.
	// Set to STATUS_UNSPECIFIED to query for all.
	Status GetExperimentsRequest_Status `` /* 132-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetExperimentsRequest) Descriptor deprecated

func (*GetExperimentsRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetExperimentsRequest.ProtoReflect.Descriptor instead.

func (*GetExperimentsRequest) GetConfigType

func (x *GetExperimentsRequest) GetConfigType() string

func (*GetExperimentsRequest) GetStatus

func (*GetExperimentsRequest) ProtoMessage

func (*GetExperimentsRequest) ProtoMessage()

func (*GetExperimentsRequest) ProtoReflect

func (x *GetExperimentsRequest) ProtoReflect() protoreflect.Message

func (*GetExperimentsRequest) Reset

func (x *GetExperimentsRequest) Reset()

func (*GetExperimentsRequest) String

func (x *GetExperimentsRequest) String() string

func (*GetExperimentsRequest) Validate

func (m *GetExperimentsRequest) Validate() error

Validate checks the field values on GetExperimentsRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetExperimentsRequest) ValidateAll

func (m *GetExperimentsRequest) ValidateAll() error

ValidateAll checks the field values on GetExperimentsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetExperimentsRequestMultiError, or nil if none found.

type GetExperimentsRequestMultiError

type GetExperimentsRequestMultiError []error

GetExperimentsRequestMultiError is an error wrapping multiple validation errors returned by GetExperimentsRequest.ValidateAll() if the designated constraints aren't met.

func (GetExperimentsRequestMultiError) AllErrors

func (m GetExperimentsRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetExperimentsRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetExperimentsRequestValidationError

type GetExperimentsRequestValidationError struct {
	// contains filtered or unexported fields
}

GetExperimentsRequestValidationError is the validation error returned by GetExperimentsRequest.Validate if the designated constraints aren't met.

func (GetExperimentsRequestValidationError) Cause

Cause function returns cause value.

func (GetExperimentsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetExperimentsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetExperimentsRequestValidationError) Field

Field function returns field value.

func (GetExperimentsRequestValidationError) Key

Key function returns key value.

func (GetExperimentsRequestValidationError) Reason

Reason function returns reason value.

type GetExperimentsRequest_Status

type GetExperimentsRequest_Status int32

The status of an experiment.

const (
	// Unspecified status.
	GetExperimentsRequest_STATUS_UNSPECIFIED GetExperimentsRequest_Status = 0
	// Return experiments that are currently running.
	GetExperimentsRequest_STATUS_RUNNING GetExperimentsRequest_Status = 1
)

func (GetExperimentsRequest_Status) Descriptor

func (GetExperimentsRequest_Status) Enum

func (GetExperimentsRequest_Status) EnumDescriptor deprecated

func (GetExperimentsRequest_Status) EnumDescriptor() ([]byte, []int)

Deprecated: Use GetExperimentsRequest_Status.Descriptor instead.

func (GetExperimentsRequest_Status) Number

func (GetExperimentsRequest_Status) String

func (GetExperimentsRequest_Status) Type

type GetExperimentsResponse

type GetExperimentsResponse struct {
	Experiments []*Experiment `protobuf:"bytes,1,rep,name=experiments,proto3" json:"experiments,omitempty"`
	// contains filtered or unexported fields
}

func (*GetExperimentsResponse) Descriptor deprecated

func (*GetExperimentsResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetExperimentsResponse.ProtoReflect.Descriptor instead.

func (*GetExperimentsResponse) GetExperiments

func (x *GetExperimentsResponse) GetExperiments() []*Experiment

func (*GetExperimentsResponse) ProtoMessage

func (*GetExperimentsResponse) ProtoMessage()

func (*GetExperimentsResponse) ProtoReflect

func (x *GetExperimentsResponse) ProtoReflect() protoreflect.Message

func (*GetExperimentsResponse) Reset

func (x *GetExperimentsResponse) Reset()

func (*GetExperimentsResponse) String

func (x *GetExperimentsResponse) String() string

func (*GetExperimentsResponse) Validate

func (m *GetExperimentsResponse) Validate() error

Validate checks the field values on GetExperimentsResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetExperimentsResponse) ValidateAll

func (m *GetExperimentsResponse) ValidateAll() error

ValidateAll checks the field values on GetExperimentsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetExperimentsResponseMultiError, or nil if none found.

type GetExperimentsResponseMultiError

type GetExperimentsResponseMultiError []error

GetExperimentsResponseMultiError is an error wrapping multiple validation errors returned by GetExperimentsResponse.ValidateAll() if the designated constraints aren't met.

func (GetExperimentsResponseMultiError) AllErrors

func (m GetExperimentsResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetExperimentsResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetExperimentsResponseValidationError

type GetExperimentsResponseValidationError struct {
	// contains filtered or unexported fields
}

GetExperimentsResponseValidationError is the validation error returned by GetExperimentsResponse.Validate if the designated constraints aren't met.

func (GetExperimentsResponseValidationError) Cause

Cause function returns cause value.

func (GetExperimentsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetExperimentsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetExperimentsResponseValidationError) Field

Field function returns field value.

func (GetExperimentsResponseValidationError) Key

Key function returns key value.

func (GetExperimentsResponseValidationError) Reason

Reason function returns reason value.

type GetListViewRequest

type GetListViewRequest struct {
	// contains filtered or unexported fields
}

func (*GetListViewRequest) Descriptor deprecated

func (*GetListViewRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetListViewRequest.ProtoReflect.Descriptor instead.

func (*GetListViewRequest) ProtoMessage

func (*GetListViewRequest) ProtoMessage()

func (*GetListViewRequest) ProtoReflect

func (x *GetListViewRequest) ProtoReflect() protoreflect.Message

func (*GetListViewRequest) Reset

func (x *GetListViewRequest) Reset()

func (*GetListViewRequest) String

func (x *GetListViewRequest) String() string

func (*GetListViewRequest) Validate

func (m *GetListViewRequest) Validate() error

Validate checks the field values on GetListViewRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetListViewRequest) ValidateAll

func (m *GetListViewRequest) ValidateAll() error

ValidateAll checks the field values on GetListViewRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetListViewRequestMultiError, or nil if none found.

type GetListViewRequestMultiError

type GetListViewRequestMultiError []error

GetListViewRequestMultiError is an error wrapping multiple validation errors returned by GetListViewRequest.ValidateAll() if the designated constraints aren't met.

func (GetListViewRequestMultiError) AllErrors

func (m GetListViewRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetListViewRequestMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetListViewRequestValidationError

type GetListViewRequestValidationError struct {
	// contains filtered or unexported fields
}

GetListViewRequestValidationError is the validation error returned by GetListViewRequest.Validate if the designated constraints aren't met.

func (GetListViewRequestValidationError) Cause

Cause function returns cause value.

func (GetListViewRequestValidationError) Error

Error satisfies the builtin error interface

func (GetListViewRequestValidationError) ErrorName

ErrorName returns error name.

func (GetListViewRequestValidationError) Field

Field function returns field value.

func (GetListViewRequestValidationError) Key

Key function returns key value.

func (GetListViewRequestValidationError) Reason

Reason function returns reason value.

type GetListViewResponse

type GetListViewResponse struct {
	Items []*ListViewItem `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*GetListViewResponse) Descriptor deprecated

func (*GetListViewResponse) Descriptor() ([]byte, []int)

Deprecated: Use GetListViewResponse.ProtoReflect.Descriptor instead.

func (*GetListViewResponse) GetItems

func (x *GetListViewResponse) GetItems() []*ListViewItem

func (*GetListViewResponse) ProtoMessage

func (*GetListViewResponse) ProtoMessage()

func (*GetListViewResponse) ProtoReflect

func (x *GetListViewResponse) ProtoReflect() protoreflect.Message

func (*GetListViewResponse) Reset

func (x *GetListViewResponse) Reset()

func (*GetListViewResponse) String

func (x *GetListViewResponse) String() string

func (*GetListViewResponse) Validate

func (m *GetListViewResponse) Validate() error

Validate checks the field values on GetListViewResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*GetListViewResponse) ValidateAll

func (m *GetListViewResponse) ValidateAll() error

ValidateAll checks the field values on GetListViewResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetListViewResponseMultiError, or nil if none found.

type GetListViewResponseMultiError

type GetListViewResponseMultiError []error

GetListViewResponseMultiError is an error wrapping multiple validation errors returned by GetListViewResponse.ValidateAll() if the designated constraints aren't met.

func (GetListViewResponseMultiError) AllErrors

func (m GetListViewResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetListViewResponseMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type GetListViewResponseValidationError

type GetListViewResponseValidationError struct {
	// contains filtered or unexported fields
}

GetListViewResponseValidationError is the validation error returned by GetListViewResponse.Validate if the designated constraints aren't met.

func (GetListViewResponseValidationError) Cause

Cause function returns cause value.

func (GetListViewResponseValidationError) Error

Error satisfies the builtin error interface

func (GetListViewResponseValidationError) ErrorName

ErrorName returns error name.

func (GetListViewResponseValidationError) Field

Field function returns field value.

func (GetListViewResponseValidationError) Key

Key function returns key value.

func (GetListViewResponseValidationError) Reason

Reason function returns reason value.

type ListViewItem

type ListViewItem struct {

	// The unique identifier of a list item.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The properties map.
	Properties *PropertiesMap `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"`
	// contains filtered or unexported fields
}

ListViewItem an abstraction for a list item.

func (*ListViewItem) Descriptor deprecated

func (*ListViewItem) Descriptor() ([]byte, []int)

Deprecated: Use ListViewItem.ProtoReflect.Descriptor instead.

func (*ListViewItem) GetId

func (x *ListViewItem) GetId() string

func (*ListViewItem) GetProperties

func (x *ListViewItem) GetProperties() *PropertiesMap

func (*ListViewItem) ProtoMessage

func (*ListViewItem) ProtoMessage()

func (*ListViewItem) ProtoReflect

func (x *ListViewItem) ProtoReflect() protoreflect.Message

func (*ListViewItem) Reset

func (x *ListViewItem) Reset()

func (*ListViewItem) String

func (x *ListViewItem) String() string

func (*ListViewItem) Validate

func (m *ListViewItem) Validate() error

Validate checks the field values on ListViewItem with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*ListViewItem) ValidateAll

func (m *ListViewItem) ValidateAll() error

ValidateAll checks the field values on ListViewItem with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ListViewItemMultiError, or nil if none found.

type ListViewItemMultiError

type ListViewItemMultiError []error

ListViewItemMultiError is an error wrapping multiple validation errors returned by ListViewItem.ValidateAll() if the designated constraints aren't met.

func (ListViewItemMultiError) AllErrors

func (m ListViewItemMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListViewItemMultiError) Error

func (m ListViewItemMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type ListViewItemValidationError

type ListViewItemValidationError struct {
	// contains filtered or unexported fields
}

ListViewItemValidationError is the validation error returned by ListViewItem.Validate if the designated constraints aren't met.

func (ListViewItemValidationError) Cause

Cause function returns cause value.

func (ListViewItemValidationError) Error

Error satisfies the builtin error interface

func (ListViewItemValidationError) ErrorName

func (e ListViewItemValidationError) ErrorName() string

ErrorName returns error name.

func (ListViewItemValidationError) Field

Field function returns field value.

func (ListViewItemValidationError) Key

Key function returns key value.

func (ListViewItemValidationError) Reason

Reason function returns reason value.

type PropertiesList

type PropertiesList struct {

	// The ordered list of items.
	Items []*Property `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
	// contains filtered or unexported fields
}

func (*PropertiesList) Descriptor deprecated

func (*PropertiesList) Descriptor() ([]byte, []int)

Deprecated: Use PropertiesList.ProtoReflect.Descriptor instead.

func (*PropertiesList) GetItems

func (x *PropertiesList) GetItems() []*Property

func (*PropertiesList) ProtoMessage

func (*PropertiesList) ProtoMessage()

func (*PropertiesList) ProtoReflect

func (x *PropertiesList) ProtoReflect() protoreflect.Message

func (*PropertiesList) Reset

func (x *PropertiesList) Reset()

func (*PropertiesList) String

func (x *PropertiesList) String() string

func (*PropertiesList) Validate

func (m *PropertiesList) Validate() error

Validate checks the field values on PropertiesList with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PropertiesList) ValidateAll

func (m *PropertiesList) ValidateAll() error

ValidateAll checks the field values on PropertiesList with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PropertiesListMultiError, or nil if none found.

type PropertiesListMultiError

type PropertiesListMultiError []error

PropertiesListMultiError is an error wrapping multiple validation errors returned by PropertiesList.ValidateAll() if the designated constraints aren't met.

func (PropertiesListMultiError) AllErrors

func (m PropertiesListMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PropertiesListMultiError) Error

func (m PropertiesListMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PropertiesListValidationError

type PropertiesListValidationError struct {
	// contains filtered or unexported fields
}

PropertiesListValidationError is the validation error returned by PropertiesList.Validate if the designated constraints aren't met.

func (PropertiesListValidationError) Cause

Cause function returns cause value.

func (PropertiesListValidationError) Error

Error satisfies the builtin error interface

func (PropertiesListValidationError) ErrorName

func (e PropertiesListValidationError) ErrorName() string

ErrorName returns error name.

func (PropertiesListValidationError) Field

Field function returns field value.

func (PropertiesListValidationError) Key

Key function returns key value.

func (PropertiesListValidationError) Reason

Reason function returns reason value.

type PropertiesMap

type PropertiesMap struct {

	// The unordered list of items that provides a fast random access to a property with a given identifier.
	Items map[string]*Property `` /* 151-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*PropertiesMap) Descriptor deprecated

func (*PropertiesMap) Descriptor() ([]byte, []int)

Deprecated: Use PropertiesMap.ProtoReflect.Descriptor instead.

func (*PropertiesMap) GetItems

func (x *PropertiesMap) GetItems() map[string]*Property

func (*PropertiesMap) ProtoMessage

func (*PropertiesMap) ProtoMessage()

func (*PropertiesMap) ProtoReflect

func (x *PropertiesMap) ProtoReflect() protoreflect.Message

func (*PropertiesMap) Reset

func (x *PropertiesMap) Reset()

func (*PropertiesMap) String

func (x *PropertiesMap) String() string

func (*PropertiesMap) Validate

func (m *PropertiesMap) Validate() error

Validate checks the field values on PropertiesMap with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*PropertiesMap) ValidateAll

func (m *PropertiesMap) ValidateAll() error

ValidateAll checks the field values on PropertiesMap with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PropertiesMapMultiError, or nil if none found.

type PropertiesMapMultiError

type PropertiesMapMultiError []error

PropertiesMapMultiError is an error wrapping multiple validation errors returned by PropertiesMap.ValidateAll() if the designated constraints aren't met.

func (PropertiesMapMultiError) AllErrors

func (m PropertiesMapMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PropertiesMapMultiError) Error

func (m PropertiesMapMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PropertiesMapValidationError

type PropertiesMapValidationError struct {
	// contains filtered or unexported fields
}

PropertiesMapValidationError is the validation error returned by PropertiesMap.Validate if the designated constraints aren't met.

func (PropertiesMapValidationError) Cause

Cause function returns cause value.

func (PropertiesMapValidationError) Error

Error satisfies the builtin error interface

func (PropertiesMapValidationError) ErrorName

func (e PropertiesMapValidationError) ErrorName() string

ErrorName returns error name.

func (PropertiesMapValidationError) Field

Field function returns field value.

func (PropertiesMapValidationError) Key

Key function returns key value.

func (PropertiesMapValidationError) Reason

Reason function returns reason value.

type Property

type Property struct {

	// The unique identifier of the property.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// The human readable name of the property.
	Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
	// The human readable value of the property. If it's not provided it's up to the caller to determine how
	// to display the content of the `value` field of the property.
	DisplayValue *wrapperspb.StringValue `protobuf:"bytes,3,opt,name=display_value,json=displayValue,proto3" json:"display_value,omitempty"`
	// The value of the property.
	//
	// Types that are assignable to Value:
	//
	//	*Property_DateValue
	//	*Property_StringValue
	//	*Property_IntValue
	//	*Property_UrlValue
	Value isProperty_Value `protobuf_oneof:"value"`
	// contains filtered or unexported fields
}

func (*Property) Descriptor deprecated

func (*Property) Descriptor() ([]byte, []int)

Deprecated: Use Property.ProtoReflect.Descriptor instead.

func (*Property) GetDateValue

func (x *Property) GetDateValue() *timestamppb.Timestamp

func (*Property) GetDisplayValue

func (x *Property) GetDisplayValue() *wrapperspb.StringValue

func (*Property) GetId

func (x *Property) GetId() string

func (*Property) GetIntValue

func (x *Property) GetIntValue() int64

func (*Property) GetLabel

func (x *Property) GetLabel() string

func (*Property) GetStringValue

func (x *Property) GetStringValue() string

func (*Property) GetUrlValue

func (x *Property) GetUrlValue() string

func (*Property) GetValue

func (m *Property) GetValue() isProperty_Value

func (*Property) ProtoMessage

func (*Property) ProtoMessage()

func (*Property) ProtoReflect

func (x *Property) ProtoReflect() protoreflect.Message

func (*Property) Reset

func (x *Property) Reset()

func (*Property) String

func (x *Property) String() string

func (*Property) Validate

func (m *Property) Validate() error

Validate checks the field values on Property with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.

func (*Property) ValidateAll

func (m *Property) ValidateAll() error

ValidateAll checks the field values on Property with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PropertyMultiError, or nil if none found.

type PropertyMultiError

type PropertyMultiError []error

PropertyMultiError is an error wrapping multiple validation errors returned by Property.ValidateAll() if the designated constraints aren't met.

func (PropertyMultiError) AllErrors

func (m PropertyMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (PropertyMultiError) Error

func (m PropertyMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type PropertyValidationError

type PropertyValidationError struct {
	// contains filtered or unexported fields
}

PropertyValidationError is the validation error returned by Property.Validate if the designated constraints aren't met.

func (PropertyValidationError) Cause

func (e PropertyValidationError) Cause() error

Cause function returns cause value.

func (PropertyValidationError) Error

func (e PropertyValidationError) Error() string

Error satisfies the builtin error interface

func (PropertyValidationError) ErrorName

func (e PropertyValidationError) ErrorName() string

ErrorName returns error name.

func (PropertyValidationError) Field

func (e PropertyValidationError) Field() string

Field function returns field value.

func (PropertyValidationError) Key

func (e PropertyValidationError) Key() bool

Key function returns key value.

func (PropertyValidationError) Reason

func (e PropertyValidationError) Reason() string

Reason function returns reason value.

type Property_DateValue

type Property_DateValue struct {
	DateValue *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=date_value,json=dateValue,proto3,oneof"`
}

type Property_IntValue

type Property_IntValue struct {
	IntValue int64 `protobuf:"varint,6,opt,name=int_value,json=intValue,proto3,oneof"`
}

type Property_StringValue

type Property_StringValue struct {
	StringValue string `protobuf:"bytes,5,opt,name=string_value,json=stringValue,proto3,oneof"`
}

type Property_UrlValue

type Property_UrlValue struct {
	UrlValue string `protobuf:"bytes,7,opt,name=url_value,json=urlValue,proto3,oneof"`
}

type UnimplementedExperimentsAPIServer

type UnimplementedExperimentsAPIServer struct {
}

UnimplementedExperimentsAPIServer should be embedded to have forward compatible implementations.

func (UnimplementedExperimentsAPIServer) CancelExperimentRun

func (UnimplementedExperimentsAPIServer) CreateExperiment

func (UnimplementedExperimentsAPIServer) GetExperiments

func (UnimplementedExperimentsAPIServer) GetListView

type UnsafeExperimentsAPIServer

type UnsafeExperimentsAPIServer interface {
	// contains filtered or unexported methods
}

UnsafeExperimentsAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ExperimentsAPIServer will result in compilation errors.

Jump to

Keyboard shortcuts

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