drone/app/gitspace/platformconnector/platformconnector.go
Deepak Bhatt 1299db775e fix:[CDE-507]: extract user from connector struct (#3040)
* change arg name
* fix user extract
2024-11-25 08:40:18 +00:00

31 lines
927 B
Go

// Copyright 2023 Harness, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
package platformconnector
import (
"context"
"github.com/harness/gitness/types"
)
type PlatformConnector interface {
// FetchConnectors fetches connector details from given list of connector IDs
FetchConnectors(
ctx context.Context,
connectorRefs []string,
currentSpacePath string,
) ([]types.PlatformConnector, error)
}