MCPcopy
hub / github.com/cloudfoundry/cli / NewCloudControllerServiceKeyRepository

Function NewCloudControllerServiceKeyRepository

cf/api/service_keys.go:30–35  ·  view source on GitHub ↗
(config coreconfig.Reader, gateway net.Gateway)

Source from the content-addressed store, hash-verified

28}
29
30func NewCloudControllerServiceKeyRepository(config coreconfig.Reader, gateway net.Gateway) (repo CloudControllerServiceKeyRepository) {
31 return CloudControllerServiceKeyRepository{
32 config: config,
33 gateway: gateway,
34 }
35}
36
37func (c CloudControllerServiceKeyRepository) CreateServiceKey(instanceGUID string, keyName string, params map[string]interface{}) error {
38 path := "/v2/service_keys"

Callers 2

NewRepositoryLocatorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected