lifecycle

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Overview

Package lifecycle is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_systemcc_lifecycle_lifecycle_proto protoreflect.FileDescriptor
View Source
var Swagger []byte

Functions

func RegisterLifecycleServiceHandler

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

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

func RegisterLifecycleServiceHandlerClient

func RegisterLifecycleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client LifecycleServiceClient) error

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

func RegisterLifecycleServiceHandlerFromEndpoint

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

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

func RegisterLifecycleServiceHandlerServer

func RegisterLifecycleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server LifecycleServiceServer) error

RegisterLifecycleServiceHandlerServer registers the http handlers for service LifecycleService to "mux". UnaryRPC :call LifecycleServiceServer 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 RegisterLifecycleServiceHandlerFromEndpoint instead.

func RegisterLifecycleServiceServer

func RegisterLifecycleServiceServer(s *grpc.Server, srv LifecycleServiceServer)

Types

type ApproveChaincodeDefinitionForMyOrgRequest

type ApproveChaincodeDefinitionForMyOrgRequest struct {
	Channel string                                            `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.ApproveChaincodeDefinitionForMyOrgArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*ApproveChaincodeDefinitionForMyOrgRequest) Descriptor deprecated

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

Deprecated: Use ApproveChaincodeDefinitionForMyOrgRequest.ProtoReflect.Descriptor instead.

func (*ApproveChaincodeDefinitionForMyOrgRequest) GetArgs

func (*ApproveChaincodeDefinitionForMyOrgRequest) GetChannel

func (*ApproveChaincodeDefinitionForMyOrgRequest) ProtoMessage

func (*ApproveChaincodeDefinitionForMyOrgRequest) ProtoReflect

func (*ApproveChaincodeDefinitionForMyOrgRequest) Reset

func (*ApproveChaincodeDefinitionForMyOrgRequest) String

func (*ApproveChaincodeDefinitionForMyOrgRequest) Validate

Validate checks the field values on ApproveChaincodeDefinitionForMyOrgRequest 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 (*ApproveChaincodeDefinitionForMyOrgRequest) ValidateAll

ValidateAll checks the field values on ApproveChaincodeDefinitionForMyOrgRequest 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 ApproveChaincodeDefinitionForMyOrgRequestMultiError, or nil if none found.

type ApproveChaincodeDefinitionForMyOrgRequestMultiError

type ApproveChaincodeDefinitionForMyOrgRequestMultiError []error

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

func (ApproveChaincodeDefinitionForMyOrgRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (ApproveChaincodeDefinitionForMyOrgRequestMultiError) Error

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

type ApproveChaincodeDefinitionForMyOrgRequestValidationError

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

ApproveChaincodeDefinitionForMyOrgRequestValidationError is the validation error returned by ApproveChaincodeDefinitionForMyOrgRequest.Validate if the designated constraints aren't met.

func (ApproveChaincodeDefinitionForMyOrgRequestValidationError) Cause

Cause function returns cause value.

func (ApproveChaincodeDefinitionForMyOrgRequestValidationError) Error

Error satisfies the builtin error interface

func (ApproveChaincodeDefinitionForMyOrgRequestValidationError) ErrorName

ErrorName returns error name.

func (ApproveChaincodeDefinitionForMyOrgRequestValidationError) Field

Field function returns field value.

func (ApproveChaincodeDefinitionForMyOrgRequestValidationError) Key

Key function returns key value.

func (ApproveChaincodeDefinitionForMyOrgRequestValidationError) Reason

Reason function returns reason value.

type CheckCommitReadinessRequest

type CheckCommitReadinessRequest struct {
	Channel string                              `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.CheckCommitReadinessArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckCommitReadinessRequest) Descriptor deprecated

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

Deprecated: Use CheckCommitReadinessRequest.ProtoReflect.Descriptor instead.

func (*CheckCommitReadinessRequest) GetArgs

func (*CheckCommitReadinessRequest) GetChannel

func (x *CheckCommitReadinessRequest) GetChannel() string

func (*CheckCommitReadinessRequest) ProtoMessage

func (*CheckCommitReadinessRequest) ProtoMessage()

func (*CheckCommitReadinessRequest) ProtoReflect

func (*CheckCommitReadinessRequest) Reset

func (x *CheckCommitReadinessRequest) Reset()

func (*CheckCommitReadinessRequest) String

func (x *CheckCommitReadinessRequest) String() string

func (*CheckCommitReadinessRequest) Validate

func (m *CheckCommitReadinessRequest) Validate() error

Validate checks the field values on CheckCommitReadinessRequest 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 (*CheckCommitReadinessRequest) ValidateAll

func (m *CheckCommitReadinessRequest) ValidateAll() error

ValidateAll checks the field values on CheckCommitReadinessRequest 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 CheckCommitReadinessRequestMultiError, or nil if none found.

type CheckCommitReadinessRequestMultiError

type CheckCommitReadinessRequestMultiError []error

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

func (CheckCommitReadinessRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CheckCommitReadinessRequestMultiError) Error

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

type CheckCommitReadinessRequestValidationError

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

CheckCommitReadinessRequestValidationError is the validation error returned by CheckCommitReadinessRequest.Validate if the designated constraints aren't met.

func (CheckCommitReadinessRequestValidationError) Cause

Cause function returns cause value.

func (CheckCommitReadinessRequestValidationError) Error

Error satisfies the builtin error interface

func (CheckCommitReadinessRequestValidationError) ErrorName

ErrorName returns error name.

func (CheckCommitReadinessRequestValidationError) Field

Field function returns field value.

func (CheckCommitReadinessRequestValidationError) Key

Key function returns key value.

func (CheckCommitReadinessRequestValidationError) Reason

Reason function returns reason value.

type CommitChaincodeDefinitionRequest

type CommitChaincodeDefinitionRequest struct {
	Channel string                                   `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.CommitChaincodeDefinitionArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*CommitChaincodeDefinitionRequest) Descriptor deprecated

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

Deprecated: Use CommitChaincodeDefinitionRequest.ProtoReflect.Descriptor instead.

func (*CommitChaincodeDefinitionRequest) GetArgs

func (*CommitChaincodeDefinitionRequest) GetChannel

func (x *CommitChaincodeDefinitionRequest) GetChannel() string

func (*CommitChaincodeDefinitionRequest) ProtoMessage

func (*CommitChaincodeDefinitionRequest) ProtoMessage()

func (*CommitChaincodeDefinitionRequest) ProtoReflect

func (*CommitChaincodeDefinitionRequest) Reset

func (*CommitChaincodeDefinitionRequest) String

func (*CommitChaincodeDefinitionRequest) Validate

Validate checks the field values on CommitChaincodeDefinitionRequest 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 (*CommitChaincodeDefinitionRequest) ValidateAll

func (m *CommitChaincodeDefinitionRequest) ValidateAll() error

ValidateAll checks the field values on CommitChaincodeDefinitionRequest 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 CommitChaincodeDefinitionRequestMultiError, or nil if none found.

type CommitChaincodeDefinitionRequestMultiError

type CommitChaincodeDefinitionRequestMultiError []error

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

func (CommitChaincodeDefinitionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (CommitChaincodeDefinitionRequestMultiError) Error

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

type CommitChaincodeDefinitionRequestValidationError

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

CommitChaincodeDefinitionRequestValidationError is the validation error returned by CommitChaincodeDefinitionRequest.Validate if the designated constraints aren't met.

func (CommitChaincodeDefinitionRequestValidationError) Cause

Cause function returns cause value.

func (CommitChaincodeDefinitionRequestValidationError) Error

Error satisfies the builtin error interface

func (CommitChaincodeDefinitionRequestValidationError) ErrorName

ErrorName returns error name.

func (CommitChaincodeDefinitionRequestValidationError) Field

Field function returns field value.

func (CommitChaincodeDefinitionRequestValidationError) Key

Key function returns key value.

func (CommitChaincodeDefinitionRequestValidationError) Reason

Reason function returns reason value.

type LifecycleServiceClient

type LifecycleServiceClient interface {
	// QueryInstalledChaincodes returns chaincode packages list installed on peer
	QueryInstalledChaincodes(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*lifecycle.QueryInstalledChaincodesResult, error)
	// QueryInstalledChaincode returns chaincode package installed on peer
	QueryInstalledChaincode(ctx context.Context, in *lifecycle.QueryInstalledChaincodeArgs, opts ...grpc.CallOption) (*lifecycle.QueryInstalledChaincodeResult, error)
	// InstallChaincode sets up chaincode package on peer
	InstallChaincode(ctx context.Context, in *lifecycle.InstallChaincodeArgs, opts ...grpc.CallOption) (*lifecycle.InstallChaincodeResult, error)
	// ApproveChaincodeDefinitionForMyOrg marks chaincode definition on a channel
	ApproveChaincodeDefinitionForMyOrg(ctx context.Context, in *ApproveChaincodeDefinitionForMyOrgRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// QueryApprovedChaincodeDefinition returns approved chaincode definition
	QueryApprovedChaincodeDefinition(ctx context.Context, in *QueryApprovedChaincodeDefinitionRequest, opts ...grpc.CallOption) (*lifecycle.QueryApprovedChaincodeDefinitionResult, error)
	// CheckCommitReadiness returns commitments statuses of participants on chaincode definition
	CheckCommitReadiness(ctx context.Context, in *CheckCommitReadinessRequest, opts ...grpc.CallOption) (*lifecycle.CheckCommitReadinessResult, error)
	// CommitChaincodeDefinition the chaincode definition on the channel
	CommitChaincodeDefinition(ctx context.Context, in *CommitChaincodeDefinitionRequest, opts ...grpc.CallOption) (*lifecycle.CommitChaincodeDefinitionResult, error)
	// QueryChaincodeDefinition returns chaincode definition committed on the channel
	QueryChaincodeDefinition(ctx context.Context, in *QueryChaincodeDefinitionRequest, opts ...grpc.CallOption) (*lifecycle.QueryChaincodeDefinitionResult, error)
	// QueryChaincodeDefinitions returns chaincode definitions committed on the channel
	QueryChaincodeDefinitions(ctx context.Context, in *QueryChaincodeDefinitionsRequest, opts ...grpc.CallOption) (*lifecycle.QueryChaincodeDefinitionsResult, error)
}

LifecycleServiceClient is the client API for LifecycleService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type LifecycleServiceServer

type LifecycleServiceServer interface {
	// QueryInstalledChaincodes returns chaincode packages list installed on peer
	QueryInstalledChaincodes(context.Context, *emptypb.Empty) (*lifecycle.QueryInstalledChaincodesResult, error)
	// QueryInstalledChaincode returns chaincode package installed on peer
	QueryInstalledChaincode(context.Context, *lifecycle.QueryInstalledChaincodeArgs) (*lifecycle.QueryInstalledChaincodeResult, error)
	// InstallChaincode sets up chaincode package on peer
	InstallChaincode(context.Context, *lifecycle.InstallChaincodeArgs) (*lifecycle.InstallChaincodeResult, error)
	// ApproveChaincodeDefinitionForMyOrg marks chaincode definition on a channel
	ApproveChaincodeDefinitionForMyOrg(context.Context, *ApproveChaincodeDefinitionForMyOrgRequest) (*emptypb.Empty, error)
	// QueryApprovedChaincodeDefinition returns approved chaincode definition
	QueryApprovedChaincodeDefinition(context.Context, *QueryApprovedChaincodeDefinitionRequest) (*lifecycle.QueryApprovedChaincodeDefinitionResult, error)
	// CheckCommitReadiness returns commitments statuses of participants on chaincode definition
	CheckCommitReadiness(context.Context, *CheckCommitReadinessRequest) (*lifecycle.CheckCommitReadinessResult, error)
	// CommitChaincodeDefinition the chaincode definition on the channel
	CommitChaincodeDefinition(context.Context, *CommitChaincodeDefinitionRequest) (*lifecycle.CommitChaincodeDefinitionResult, error)
	// QueryChaincodeDefinition returns chaincode definition committed on the channel
	QueryChaincodeDefinition(context.Context, *QueryChaincodeDefinitionRequest) (*lifecycle.QueryChaincodeDefinitionResult, error)
	// QueryChaincodeDefinitions returns chaincode definitions committed on the channel
	QueryChaincodeDefinitions(context.Context, *QueryChaincodeDefinitionsRequest) (*lifecycle.QueryChaincodeDefinitionsResult, error)
}

LifecycleServiceServer is the server API for LifecycleService service.

type QueryApprovedChaincodeDefinitionRequest

type QueryApprovedChaincodeDefinitionRequest struct {
	Channel string                                          `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.QueryApprovedChaincodeDefinitionArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryApprovedChaincodeDefinitionRequest) Descriptor deprecated

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

Deprecated: Use QueryApprovedChaincodeDefinitionRequest.ProtoReflect.Descriptor instead.

func (*QueryApprovedChaincodeDefinitionRequest) GetArgs

func (*QueryApprovedChaincodeDefinitionRequest) GetChannel

func (*QueryApprovedChaincodeDefinitionRequest) ProtoMessage

func (*QueryApprovedChaincodeDefinitionRequest) ProtoReflect

func (*QueryApprovedChaincodeDefinitionRequest) Reset

func (*QueryApprovedChaincodeDefinitionRequest) String

func (*QueryApprovedChaincodeDefinitionRequest) Validate

Validate checks the field values on QueryApprovedChaincodeDefinitionRequest 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 (*QueryApprovedChaincodeDefinitionRequest) ValidateAll

ValidateAll checks the field values on QueryApprovedChaincodeDefinitionRequest 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 QueryApprovedChaincodeDefinitionRequestMultiError, or nil if none found.

type QueryApprovedChaincodeDefinitionRequestMultiError

type QueryApprovedChaincodeDefinitionRequestMultiError []error

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

func (QueryApprovedChaincodeDefinitionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (QueryApprovedChaincodeDefinitionRequestMultiError) Error

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

type QueryApprovedChaincodeDefinitionRequestValidationError

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

QueryApprovedChaincodeDefinitionRequestValidationError is the validation error returned by QueryApprovedChaincodeDefinitionRequest.Validate if the designated constraints aren't met.

func (QueryApprovedChaincodeDefinitionRequestValidationError) Cause

Cause function returns cause value.

func (QueryApprovedChaincodeDefinitionRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryApprovedChaincodeDefinitionRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryApprovedChaincodeDefinitionRequestValidationError) Field

Field function returns field value.

func (QueryApprovedChaincodeDefinitionRequestValidationError) Key

Key function returns key value.

func (QueryApprovedChaincodeDefinitionRequestValidationError) Reason

Reason function returns reason value.

type QueryChaincodeDefinitionRequest

type QueryChaincodeDefinitionRequest struct {
	Channel string                                  `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.QueryChaincodeDefinitionArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryChaincodeDefinitionRequest) Descriptor deprecated

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

Deprecated: Use QueryChaincodeDefinitionRequest.ProtoReflect.Descriptor instead.

func (*QueryChaincodeDefinitionRequest) GetArgs

func (*QueryChaincodeDefinitionRequest) GetChannel

func (x *QueryChaincodeDefinitionRequest) GetChannel() string

func (*QueryChaincodeDefinitionRequest) ProtoMessage

func (*QueryChaincodeDefinitionRequest) ProtoMessage()

func (*QueryChaincodeDefinitionRequest) ProtoReflect

func (*QueryChaincodeDefinitionRequest) Reset

func (*QueryChaincodeDefinitionRequest) String

func (*QueryChaincodeDefinitionRequest) Validate

func (m *QueryChaincodeDefinitionRequest) Validate() error

Validate checks the field values on QueryChaincodeDefinitionRequest 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 (*QueryChaincodeDefinitionRequest) ValidateAll

func (m *QueryChaincodeDefinitionRequest) ValidateAll() error

ValidateAll checks the field values on QueryChaincodeDefinitionRequest 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 QueryChaincodeDefinitionRequestMultiError, or nil if none found.

type QueryChaincodeDefinitionRequestMultiError

type QueryChaincodeDefinitionRequestMultiError []error

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

func (QueryChaincodeDefinitionRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (QueryChaincodeDefinitionRequestMultiError) Error

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

type QueryChaincodeDefinitionRequestValidationError

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

QueryChaincodeDefinitionRequestValidationError is the validation error returned by QueryChaincodeDefinitionRequest.Validate if the designated constraints aren't met.

func (QueryChaincodeDefinitionRequestValidationError) Cause

Cause function returns cause value.

func (QueryChaincodeDefinitionRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryChaincodeDefinitionRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryChaincodeDefinitionRequestValidationError) Field

Field function returns field value.

func (QueryChaincodeDefinitionRequestValidationError) Key

Key function returns key value.

func (QueryChaincodeDefinitionRequestValidationError) Reason

Reason function returns reason value.

type QueryChaincodeDefinitionsRequest

type QueryChaincodeDefinitionsRequest struct {
	Channel string                                   `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"`
	Args    *lifecycle.QueryChaincodeDefinitionsArgs `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"`
	// contains filtered or unexported fields
}

func (*QueryChaincodeDefinitionsRequest) Descriptor deprecated

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

Deprecated: Use QueryChaincodeDefinitionsRequest.ProtoReflect.Descriptor instead.

func (*QueryChaincodeDefinitionsRequest) GetArgs

func (*QueryChaincodeDefinitionsRequest) GetChannel

func (x *QueryChaincodeDefinitionsRequest) GetChannel() string

func (*QueryChaincodeDefinitionsRequest) ProtoMessage

func (*QueryChaincodeDefinitionsRequest) ProtoMessage()

func (*QueryChaincodeDefinitionsRequest) ProtoReflect

func (*QueryChaincodeDefinitionsRequest) Reset

func (*QueryChaincodeDefinitionsRequest) String

func (*QueryChaincodeDefinitionsRequest) Validate

Validate checks the field values on QueryChaincodeDefinitionsRequest 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 (*QueryChaincodeDefinitionsRequest) ValidateAll

func (m *QueryChaincodeDefinitionsRequest) ValidateAll() error

ValidateAll checks the field values on QueryChaincodeDefinitionsRequest 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 QueryChaincodeDefinitionsRequestMultiError, or nil if none found.

type QueryChaincodeDefinitionsRequestMultiError

type QueryChaincodeDefinitionsRequestMultiError []error

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

func (QueryChaincodeDefinitionsRequestMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (QueryChaincodeDefinitionsRequestMultiError) Error

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

type QueryChaincodeDefinitionsRequestValidationError

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

QueryChaincodeDefinitionsRequestValidationError is the validation error returned by QueryChaincodeDefinitionsRequest.Validate if the designated constraints aren't met.

func (QueryChaincodeDefinitionsRequestValidationError) Cause

Cause function returns cause value.

func (QueryChaincodeDefinitionsRequestValidationError) Error

Error satisfies the builtin error interface

func (QueryChaincodeDefinitionsRequestValidationError) ErrorName

ErrorName returns error name.

func (QueryChaincodeDefinitionsRequestValidationError) Field

Field function returns field value.

func (QueryChaincodeDefinitionsRequestValidationError) Key

Key function returns key value.

func (QueryChaincodeDefinitionsRequestValidationError) Reason

Reason function returns reason value.

type Service

type Service struct {
	UnimplementedLifecycleServiceServer

	Invoker api.Invoker
}

func NewLifecycle

func NewLifecycle(invoker api.Invoker) *Service

func (*Service) ApproveChaincodeDefinitionForMyOrg

func (l *Service) ApproveChaincodeDefinitionForMyOrg(ctx context.Context,
	approveChaincodeDefinitionForMyOrg *ApproveChaincodeDefinitionForMyOrgRequest) (*empty.Empty, error)

func (*Service) CheckCommitReadiness

func (l *Service) CheckCommitReadiness(ctx context.Context, checkCommitReadiness *CheckCommitReadinessRequest) (
	*lifecycleproto.CheckCommitReadinessResult, error)

func (*Service) CommitChaincodeDefinition

func (l *Service) CommitChaincodeDefinition(ctx context.Context, commitChaincodeDefinition *CommitChaincodeDefinitionRequest) (*lifecycleproto.CommitChaincodeDefinitionResult, error)

func (*Service) QueryApprovedChaincodeDefinition

func (l *Service) QueryApprovedChaincodeDefinition(ctx context.Context, queryApprovedChaincodeDefinition *QueryApprovedChaincodeDefinitionRequest) (*lifecycleproto.QueryApprovedChaincodeDefinitionResult, error)

func (*Service) QueryChaincodeDefinition

func (l *Service) QueryChaincodeDefinition(ctx context.Context, queryChaincodeDefinition *QueryChaincodeDefinitionRequest) (*lifecycleproto.QueryChaincodeDefinitionResult, error)

func (*Service) QueryChaincodeDefinitions

func (l *Service) QueryChaincodeDefinitions(ctx context.Context, queryChaincodeDefinitions *QueryChaincodeDefinitionsRequest) (*lifecycleproto.QueryChaincodeDefinitionsResult, error)

func (*Service) QueryInstalledChaincodes

func (l *Service) QueryInstalledChaincodes(ctx context.Context, _ *empty.Empty) (*lifecycleproto.QueryInstalledChaincodesResult, error)

func (*Service) ServiceDef

func (l *Service) ServiceDef() *service.Def

type UnimplementedLifecycleServiceServer

type UnimplementedLifecycleServiceServer struct {
}

UnimplementedLifecycleServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedLifecycleServiceServer) ApproveChaincodeDefinitionForMyOrg

func (*UnimplementedLifecycleServiceServer) QueryInstalledChaincodes

Jump to

Keyboard shortcuts

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