MCPcopy
hub / github.com/digitalocean/doctl / Create

Method Create

do/sshkeys.go:104–111  ·  view source on GitHub ↗
(kcr *godo.KeyCreateRequest)

Source from the content-addressed store, hash-verified

102}
103
104func (ks *keysService) Create(kcr *godo.KeyCreateRequest) (*SSHKey, error) {
105 k, _, err := ks.client.Keys.Create(context.TODO(), kcr)
106 if err != nil {
107 return nil, err
108 }
109
110 return &SSHKey{Key: k}, nil
111}
112
113func (ks *keysService) Update(id string, kur *godo.KeyUpdateRequest) (*SSHKey, error) {
114 var k *godo.Key

Callers

nothing calls this directly

Calls 1

CreateMethod · 0.65

Tested by

no test coverage detected