MCPcopy Create free account
hub / github.com/chainloop-dev/chainloop / NewClient

Function NewClient

app/controlplane/pkg/data/ent/client.go:89–93  ·  view source on GitHub ↗

NewClient creates a new client configured with the given options.

(opts ...Option)

Source from the content-addressed store, hash-verified

87
88// NewClient creates a new client configured with the given options.
89func NewClient(opts ...Option) *Client {
90 client := &Client{config: newConfig(opts...)}
91 client.init()
92 return client
93}
94
95func (c *Client) init() {
96 c.Schema = migrate.NewSchema(c.driver)

Callers 3

initSQLDatabaseFunction · 0.92
NewClientFunction · 0.92
OpenFunction · 0.70

Calls 2

initMethod · 0.95
newConfigFunction · 0.85

Tested by

no test coverage detected