Move NewCheckResponse into coconut/pkg/resource package
This commit is contained in:
parent
366e236853
commit
958d67d444
7 changed files with 7 additions and 7 deletions
|
@ -55,7 +55,7 @@ func (p *instanceProvider) Check(ctx context.Context, req *cocorpc.CheckRequest)
|
|||
contract.Assertf(*result.Images[0].ImageId == instance.ImageID, "Expected instance IDs to match")
|
||||
}
|
||||
|
||||
return awsctx.NewCheckResponse(result), nil
|
||||
return resource.NewCheckResponse(result), nil
|
||||
}
|
||||
|
||||
// Name names a given resource. Sometimes this will be assigned by a developer, and so the provider
|
||||
|
|
|
@ -39,7 +39,7 @@ func (p *sgProvider) Check(ctx context.Context, req *cocorpc.CheckRequest) (*coc
|
|||
// Read in the properties, create and validate a new group, and return the failures (if any).
|
||||
contract.Assert(req.GetType() == string(SecurityGroup))
|
||||
_, _, result := unmarshalSecurityGroup(req.GetProperties())
|
||||
return awsctx.NewCheckResponse(result), nil
|
||||
return resource.NewCheckResponse(result), nil
|
||||
}
|
||||
|
||||
// Name names a given resource. Sometimes this will be assigned by a developer, and so the provider
|
||||
|
|
|
@ -40,7 +40,7 @@ func (p *roleProvider) Check(ctx context.Context, req *cocorpc.CheckRequest) (*c
|
|||
// Read in the properties, create and validate a new group, and return the failures (if any).
|
||||
contract.Assert(req.GetType() == string(Role))
|
||||
_, _, result := unmarshalRole(req.GetProperties())
|
||||
return awsctx.NewCheckResponse(result), nil
|
||||
return resource.NewCheckResponse(result), nil
|
||||
}
|
||||
|
||||
// Name names a given resource. Sometimes this will be assigned by a developer, and so the provider
|
||||
|
|
|
@ -44,7 +44,7 @@ func (p *funcProvider) Check(ctx context.Context, req *cocorpc.CheckRequest) (*c
|
|||
// Read in the properties, create and validate a new group, and return the failures (if any).
|
||||
contract.Assert(req.GetType() == string(Function))
|
||||
_, _, result := unmarshalFunction(req.GetProperties())
|
||||
return awsctx.NewCheckResponse(result), nil
|
||||
return resource.NewCheckResponse(result), nil
|
||||
}
|
||||
|
||||
// Name names a given resource. Sometimes this will be assigned by a developer, and so the provider
|
||||
|
|
|
@ -39,7 +39,7 @@ func (p *buckProvider) Check(ctx context.Context, req *cocorpc.CheckRequest) (*c
|
|||
// Read in the properties, create and validate a new group, and return the failures (if any).
|
||||
contract.Assert(req.GetType() == string(Bucket))
|
||||
_, _, result := unmarshalBucket(req.GetProperties())
|
||||
return awsctx.NewCheckResponse(result), nil
|
||||
return resource.NewCheckResponse(result), nil
|
||||
}
|
||||
|
||||
// Name names a given resource. Sometimes this will be assigned by a developer, and so the provider
|
||||
|
|
|
@ -43,7 +43,7 @@ func (p *objProvider) Check(ctx context.Context, req *cocorpc.CheckRequest) (*co
|
|||
// Read in the properties, create and validate a new group, and return the failures (if any).
|
||||
contract.Assert(req.GetType() == string(Object))
|
||||
_, _, result := unmarshalObject(req.GetProperties())
|
||||
return awsctx.NewCheckResponse(result), nil
|
||||
return resource.NewCheckResponse(result), nil
|
||||
}
|
||||
|
||||
// Name names a given resource. Sometimes this will be assigned by a developer, and so the provider
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright 2017 Pulumi, Inc. All rights reserved.
|
||||
|
||||
package awsctx
|
||||
package resource
|
||||
|
||||
import (
|
||||
"github.com/pulumi/coconut/pkg/util/mapper"
|
Loading…
Reference in a new issue