Documentation
¶
Index ¶
- func GenerateBytesUUID() []byte
- type BDDContext
- type Composition
- func (c *Composition) Decompose(dir string) (output string, err error)
- func (c *Composition) GenerateLogs(dir string) error
- func (c *Composition) GetAPIContainerForComposeService(composeService string) (apiContainer *docker.APIContainers, err error)
- func (c *Composition) GetContainerIDs(dir string) (containerIDs []string, err error)
- func (c *Composition) GetIPAddressForComposeService(composeService string) (ipAddress string, err error)
- type CreateOperationVectors
- type DIDSideSteps
- type DockerHelper
- type InteropVectors
- type OperationVectors
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateBytesUUID ¶
func GenerateBytesUUID() []byte
GenerateBytesUUID returns a UUID based on RFC 4122 returning the generated bytes
Types ¶
type BDDContext ¶
type BDDContext struct { }
BDDContext
func (*BDDContext) AfterScenario ¶
func (b *BDDContext) AfterScenario(interface{}, error)
AfterScenario execute code after bdd scenario
func (*BDDContext) BeforeScenario ¶
func (b *BDDContext) BeforeScenario(scenarioOrScenarioOutline interface{})
BeforeScenario execute code before bdd scenario
type Composition ¶
type Composition struct {
// contains filtered or unexported fields
}
Composition represents a docker-compose execution and management
func NewComposition ¶
func NewComposition(projectName string, composeFilesYaml string, dir string) (composition *Composition, err error)
NewComposition create a new Composition specifying the project name (for isolation) and the compose files.
func (*Composition) Decompose ¶
func (c *Composition) Decompose(dir string) (output string, err error)
Decompose decompose the composition. Will also remove any containers with the same projectName prefix (eg. chaincode containers)
func (*Composition) GenerateLogs ¶
func (c *Composition) GenerateLogs(dir string) error
GenerateLogs to file
func (*Composition) GetAPIContainerForComposeService ¶
func (c *Composition) GetAPIContainerForComposeService(composeService string) (apiContainer *docker.APIContainers, err error)
GetAPIContainerForComposeService return the docker.APIContainers with the supplied composeService name.
func (*Composition) GetContainerIDs ¶
func (c *Composition) GetContainerIDs(dir string) (containerIDs []string, err error)
GetContainerIDs returns the container IDs for the composition (NOTE: does NOT include those defined outside composition, eg. chaincode containers)
func (*Composition) GetIPAddressForComposeService ¶
func (c *Composition) GetIPAddressForComposeService(composeService string) (ipAddress string, err error)
GetIPAddressForComposeService returns the IPAddress of the container with the supplied composeService name.
type CreateOperationVectors ¶
type CreateOperationVectors struct { OperationVectors ShortFormDID string `json:"shortFormDid,omitempty"` LongFormDID string `json:"longFormDid,omitempty"` }
type DIDSideSteps ¶
type DIDSideSteps struct {
// contains filtered or unexported fields
}
DIDSideSteps
func (*DIDSideSteps) RegisterSteps ¶
func (d *DIDSideSteps) RegisterSteps(s *godog.Suite)
RegisterSteps registers did sidetree steps
type DockerHelper ¶
type DockerHelper interface { GetIPAddress(containerID string) (string, error) RemoveContainersWithNamePrefix(namePrefix string) error }
DockerHelper helper for docker specific functions
func NewDockerCmdlineHelper ¶
func NewDockerCmdlineHelper() (DockerHelper, error)
NewDockerCmdlineHelper returns a new command line DockerHelper instance
type InteropVectors ¶
type InteropVectors struct { Create CreateOperationVectors `json:"create,omitempty"` Update OperationVectors `json:"update,omitempty"` Recover OperationVectors `json:"recover,omitempty"` Deactivate OperationVectors `json:"deactivate,omitempty"` }
type OperationVectors ¶
type OperationVectors struct {
OperationRequest map[string]interface{} `json:"operationRequest,omitempty"`
}