func (s *pluginService) CreatePlugin(
	ctx context.Context,
	owner string,
	name string,
	visibility v1alpha1.PluginVisibility,
) (plugin *v1alpha1.Plugin, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.CreatePlugin(
		ctx,
		&v1alpha1.CreatePluginRequest{
			Owner:      owner,
			Name:       name,
			Visibility: visibility,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.Plugin, nil
}
// CreatePlugin creates a new plugin.
CreatePlugin creates a new plugin.
// CreatePlugin creates a new plugin .
func (s *pluginService) CreatePlugin(
	ctx context.Context,
	owner string,
	name string,
	visibility v1alpha1.PluginVisibility,
) (plugin *v1alpha1.Plugin, _ error) {
	if s.contextModifier != nil {
		ctx = s.contextModifier(ctx)
	}
	response, err := s.client.CreatePlugin(
		ctx,
		&v1alpha1.CreatePluginRequest{
			Owner:      owner,
			Name:       name,
			Visibility: visibility,
		},
	)
	if err != nil {
		return nil, err
	}
	return response.Plugin, nil
}
func ( s * pluginService ) CreatePlugin ( ctx context . Context , owner string , name string , visibility v1alpha1 . PluginVisibility , ) ( plugin * v1alpha1 . Plugin , _ error ) { if s . contextModifier != nil { ctx = s . contextModifier ( ctx ) } response , err := s . client . CreatePlugin ( ctx , & v1alpha1 . CreatePluginRequest { Owner : owner , Name : name , Visibility : visibility , } , ) if err != nil { return nil , err } return response . Plugin , nil }
CreatePlugin creates a new plugin.
CreatePlugin creates a new plugin .