Documentation ¶
Index ¶
- type Child
- type Config
- type Rest
- func (c *Rest) Annotate(a infer.Annotator)
- func (c *Rest) Create(ctx p.Context, name string, input RestInputs, preview bool) (string, RestOutputs, error)
- func (c *Rest) Delete(ctx p.Context, id string, props RestOutputs) error
- func (c *Rest) Diff(ctx p.Context, id string, olds RestOutputs, news RestInputs) (p.DiffResponse, error)
- func (c *Rest) Read(ctx p.Context, id string, input RestInputs, state RestOutputs) (string, RestInputs, RestOutputs, error)
- func (c *Rest) Update(ctx p.Context, id string, olds RestOutputs, news RestInputs, preview bool) (RestOutputs, error)
- func (r *Rest) WireDependencies(f infer.FieldSelector, args *RestInputs, state *RestOutputs)
- type RestInputs
- type RestOutputs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Child ¶
type Config ¶
type Config struct { Url string `pulumi:"url"` Username string `pulumi:"username"` Password string `pulumi:"password" provider:"secret"` Insecure *bool `pulumi:"insecure,optional"` Retries *int `pulumi:"retries,optional"` Logging *bool `pulumi:"logging,optional"` Client *aci.Client }
func (*Config) Check ¶
func (c *Config) Check(ctx p.Context, name string, oldInputs, newInputs resource.PropertyMap) (*Config, []p.CheckFailure, error)
workaround for https://github.com/pulumi/pulumi-go-provider/issues/110
type Rest ¶
type Rest struct{}
This is the type that implements the Rest resource methods.
func (*Rest) Annotate ¶
Implementing Annotate lets you provide descriptions and default values for resources and they will be visible in the provider's schema and the generated SDKs.
func (*Rest) Create ¶
func (c *Rest) Create(ctx p.Context, name string, input RestInputs, preview bool) (string, RestOutputs, error)
This is the Create method. This will be run on every Rest resource creation.
func (*Rest) Diff ¶
func (c *Rest) Diff(ctx p.Context, id string, olds RestOutputs, news RestInputs) (p.DiffResponse, error)
This is the Diff method.
func (*Rest) Read ¶
func (c *Rest) Read(ctx p.Context, id string, input RestInputs, state RestOutputs) (string, RestInputs, RestOutputs, error)
This is the Read method.
func (*Rest) Update ¶
func (c *Rest) Update(ctx p.Context, id string, olds RestOutputs, news RestInputs, preview bool) (RestOutputs, error)
The Update method will be run on every update.
func (*Rest) WireDependencies ¶
func (r *Rest) WireDependencies(f infer.FieldSelector, args *RestInputs, state *RestOutputs)
This naive implementation conveys that every output is derived from its respective inputs.
type RestInputs ¶
type RestInputs struct { // The field tags are used to provide metadata on the schema representation. // pulumi:"optional" specifies that a field is optional. This must be a pointer. // provider:"replaceOnChanges" specifies that the resource will be replaced if the field changes. Dn string `pulumi:"dn"` ClassName string `pulumi:"class_name"` Content *map[string]string `pulumi:"content,optional"` Children *[]Child `pulumi:"children,optional"` }
These are the inputs (or arguments) to a Rest resource.
func (*RestInputs) Annotate ¶
func (c *RestInputs) Annotate(a infer.Annotator)
Annotate lets you provide descriptions and default values for fields and they will be visible in the provider's schema and the generated SDKs.
type RestOutputs ¶
type RestOutputs struct {
RestInputs
}
These are the outputs (or properties) of a Rest resource.