provider

package
v0.0.0-...-67987c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 29, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEPRECATION_CHANNEL_NAME_FORMAT = "%s-deleted-%s"
View Source
var SlackFunctions = []SlackFunction{
	&SlackUserFunction{},
}
View Source
var SlackResources = []SlackResource{
	&SlackConversationResource{},
}

Functions

func Serve

func Serve(providerName, version string)

Serve launches the gRPC server for the resource provider.

Types

type ResourceBase

type ResourceBase interface {
	GetUrn() string
}

type SlackConfig

type SlackConfig struct {
	Config map[string]string
}

type SlackConversationInput

type SlackConversationInput struct {
	Name       string
	Topic      string
	Purpose    string
	IsPrivate  bool
	IsArchived bool
	Members    []string
}

func (*SlackConversationInput) ToPropertyMap

func (i *SlackConversationInput) ToPropertyMap() resource.PropertyMap

type SlackConversationResource

type SlackConversationResource struct {
	// contains filtered or unexported fields
}

func (*SlackConversationResource) Check

func (*SlackConversationResource) Configure

func (c *SlackConversationResource) Configure(config SlackConfig)

func (*SlackConversationResource) Create

func (*SlackConversationResource) Delete

func (*SlackConversationResource) Diff

func (*SlackConversationResource) Name

func (*SlackConversationResource) Read

func (*SlackConversationResource) ToSlackConversationInput

func (r *SlackConversationResource) ToSlackConversationInput(inputMap resource.PropertyMap) SlackConversationInput

func (*SlackConversationResource) Update

type SlackFunction

type SlackFunction interface {
	Configure(config SlackConfig)
	Invoke(s *slackProvider, req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error)
	Name() string
}

type SlackUnknownFunction

type SlackUnknownFunction struct{}

func (*SlackUnknownFunction) Configure

func (f *SlackUnknownFunction) Configure(config SlackConfig)

func (*SlackUnknownFunction) Invoke

func (f *SlackUnknownFunction) Invoke(s *slackProvider, req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error)

func (*SlackUnknownFunction) Name

func (f *SlackUnknownFunction) Name() string

type SlackUnknownResource

type SlackUnknownResource struct{}

func (*SlackUnknownResource) Check

func (*SlackUnknownResource) Configure

func (u *SlackUnknownResource) Configure(config SlackConfig)

func (*SlackUnknownResource) Create

func (*SlackUnknownResource) Delete

func (*SlackUnknownResource) Diff

func (SlackUnknownResource) Name

func (c SlackUnknownResource) Name() string

func (*SlackUnknownResource) Read

func (*SlackUnknownResource) Update

type SlackUserFunction

type SlackUserFunction struct {
	// contains filtered or unexported fields
}

func (*SlackUserFunction) Configure

func (u *SlackUserFunction) Configure(config SlackConfig)

func (*SlackUserFunction) Invoke

func (u *SlackUserFunction) Invoke(s *slackProvider, req *pulumirpc.InvokeRequest) (*pulumirpc.InvokeResponse, error)

func (*SlackUserFunction) Name

func (u *SlackUserFunction) Name() string

type User

type User struct {
	Email string `pulumi:"email"`
	Id    string `pulumi:"id"`
	Name  string `pulumi:"name"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL