mock

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Overview

Package mock provides mock implementations of the ipam api client

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GQLClient

type GQLClient struct {
	DoQuery  func(ctx context.Context, q interface{}, variables map[string]interface{}, options ...graphql.Option) error
	DoMutate func(ctx context.Context, m interface{}, variables map[string]interface{}, options ...graphql.Option) error
}

GQLClient is the mock http client

func (*GQLClient) Mutate

func (c *GQLClient) Mutate(ctx context.Context, m interface{}, variables map[string]interface{}, options ...graphql.Option) error

Mutate is the mock for a gqlclient mutate

func (*GQLClient) Query

func (c *GQLClient) Query(ctx context.Context, q interface{}, variables map[string]interface{}, options ...graphql.Option) error

Query is the mock for a gqlclient query

Jump to

Keyboard shortcuts

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