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

Function New

pkg/casclient/casclient.go:71–83  ·  view source on GitHub ↗
(conn *grpc.ClientConn, opts ...ClientOpts)

Source from the content-addressed store, hash-verified

69}
70
71func New(conn *grpc.ClientConn, opts ...ClientOpts) *Client {
72 client := &Client{
73 conn: conn,
74 ProgressStatus: make(chan *UpDownStatus),
75 logger: zerolog.Nop(),
76 }
77
78 for _, opt := range opts {
79 opt(client)
80 }
81
82 return client
83}
84
85type ClientOpts func(u *Client)
86

Callers 4

NewCASClientUseCaseFunction · 0.92
RunMethod · 0.92
getCASBackendFunction · 0.92
RunMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected