Documentation ¶
Overview ¶
****************************************************************************** * Copyright 2019 Samsung Electronics All Rights Reserved. * * 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. * ******************************************************************************
Index ¶
Constants ¶
const ( NOT_MATCHED_SERVICE_WITH_EXECUTABLE = "not matched service with executable" NOT_ALLOWED_EXECUTABLE_SERVICE = "not allowed executable service" NOT_FOUND_EXECUTABLE_FILE = "not found executable file" FOUND_INJECTION_COMMAND = "found injection command" ALREADY_REGISTERED = "already registered service name" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandValidator ¶
type CommandValidator struct{}
func (CommandValidator) AddWhiteCommand ¶
func (CommandValidator) AddWhiteCommand(serviceInfo configuremgrtypes.ServiceInfo) error
func (CommandValidator) CheckCommand ¶
func (CommandValidator) CheckCommand(serviceName string, command []string) error
func (CommandValidator) GetCommand ¶
func (CommandValidator) GetCommand(serviceName string) (string, error)
type ICommandValidator ¶
type ICommandValidator interface { AddWhiteCommand(configuremgrtypes.ServiceInfo) error GetCommand(serviceName string) (string, error) CheckCommand(command []string) error }